[PATCH] Fix a compile warning under gcc-4.4.1

classic Classic list List threaded Threaded
2 messages Options
Joshua Roys Joshua Roys
Reply | Threaded
Open this post in threaded view
|

[PATCH] Fix a compile warning under gcc-4.4.1

---
 Hello,
 This fixes the following for me:

 notmuch-reply.c: In function ‘address_is_users’:
 notmuch-reply.c:87: warning: passing argument 2 of ‘notmuch_config_get_user_other_email’ from incompatible pointer type
 notmuch-client.h:174: note: expected ‘size_t *’ but argument is of type ‘unsigned int *’

 notmuch-reply.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/notmuch-reply.c b/notmuch-reply.c
index 4a4a782..344b6e3 100644
--- a/notmuch-reply.c
+++ b/notmuch-reply.c
@@ -78,7 +78,7 @@ address_is_users (const char *address, notmuch_config_t *config)
 {
     const char *primary;
     char **other;
-    unsigned int i, other_len;
+    size_t i, other_len;
 
     primary = notmuch_config_get_user_primary_email (config);
     if (strcmp (primary, address) == 0)
--
1.6.2.5


Carl Worth-2 Carl Worth-2
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Fix a compile warning under gcc-4.4.1

On Wed, 18 Nov 2009 14:43:22 -0500, Joshua Roys <[hidden email]> wrote:
> ---
>  Hello,
>  This fixes the following for me:

Thanks so much for the report and patch, Joshua.

This bug was recently fixed in a commit pushed out to the notmuch
repository.

Happy hacking,

-Carl