[notmuch] [PATCH] Fix a compile warning under gcc-4.4.1

Joshua Roys roysjosh at gmail.com
Wed Nov 18 11:43:22 PST 2009


---
 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



More information about the notmuch mailing list