A NOTE has been added to this issue. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=572 
====================================================================== 
Reported By:                jasb
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   572
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
target:                      
====================================================================== 
Date Submitted:             13-Apr-07 21:55 CEST
Last Modified:              20-Apr-07 11:12 CEST
====================================================================== 
Summary:                    Some warnings
Description: 
Hi,
Compiling i have some warnings, they may be harmless but check them so
verify that.

 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -I/usr/include/glib-2.0
-I/usr/lib/g                                  lib-2.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/inclu          
                       de/gmime-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -W -Wall -Wpoin                               
  ter-arith -Wstrict-prototypes -MT libdbmail_la-dbmail-message.lo -MD -MP
-MF .de                                 
ps/libdbmail_la-dbmail-message.Tpo -c dbmail-message.c  -fPIC -DPIC -o
.libs/lib                                  dbmail_la-dbmail-message.o
dbmail-message.c: In function '_header_cache':
dbmail-message.c:1017: warning: pointer targets in passing argument 1 of
'g_mime                                  _utils_header_encode_text' differ
in signedness
dbmail-message.c:1028: warning: pointer targets in passing argument 1 of
'g_mime                                  _utils_header_decode_text' differ
in signedness
dbmail-message.c:1036: warning: pointer targets in passing argument 1 of
'g_mime                                  _utils_header_decode_text' differ
in signedness
dbmail-message.c: In function 'dbmail_message_cache_fromfield':
dbmail-message.c:1153: warning: pointer targets in passing argument 1 of
'g_mime                                  _utils_header_encode_text' differ
in signedness
dbmail-message.c: In function 'dbmail_message_cache_replytofield':
dbmail-message.c:1177: warning: pointer targets in passing argument 1 of
'g_mime                                  _utils_header_encode_text' differ
in signedness




 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -I/usr/include/glib-2.0
-I/usr/lib/g                                  lib-2.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/inclu          
                       de/gmime-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -W -Wall -Wpoin                               
  ter-arith -Wstrict-prototypes -MT libdbmail_la-misc.lo -MD -MP -MF
.deps/libdbma                                  il_la-misc.Tpo -c misc.c 
-fPIC -DPIC -o .libs/libdbmail_la-misc.o
misc.c: In function 'dm_base_subject':
misc.c:648: warning: pointer targets in passing argument 1 of
'g_mime_utils_head                                  er_decode_text' differ
in signedness
misc.c: In function 'get_param_list':
misc.c:1490: warning: pointer targets in passing argument 1 of
'g_mime_utils_hea                                  der_encode_text' differ
in signedness
misc.c: In function 'dbmail_imap_append_alist_as_plist':
misc.c:1886: warning: pointer targets in passing argument 1 of
'g_mime_utils_hea                                  der_encode_phrase'
differ in signedness
misc.c: In function 'convert_8bit_db_to_mime':
misc.c:2262: warning: pointer targets in passing argument 1 of
'g_mime_utils_hea                                  der_encode_text' differ
in signedness
misc.c:2268: warning: pointer targets in passing argument 1 of
'g_mime_utils_hea                                  der_encode_text' differ
in signedness
misc.c: In function 'imap_get_envelope':
misc.c:2301: warning: pointer targets in passing argument 1 of
'g_mime_utils_hea                                  der_encode_text' differ
in signedness




if gcc -DHAVE_CONFIG_H -I. -I. -I. -I.    -g -O2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/gmime-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -W -Wall
-Wpointer-arith -Wstrict-prototypes -MT imapcommands.o -MD -MP -MF
".deps/imapcommands.Tpo" -c -o imapcommands.o imapcommands.c; \
        then mv -f ".deps/imapcommands.Tpo" ".deps/imapcommands.Po"; else
rm -f ".deps/imapcommands.Tpo"; exit 1; fi
imapcommands.c: In function '_do_store':
imapcommands.c:1469: warning: format '%llu' expects type 'long long
unsigned int', but argument 7 has type 'u64_t *'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I.    -g -O2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/gmime-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -W -Wall
-Wpointer-arith -Wstrict-prototypes -MT memblock.o -MD -MP -MF
".deps/memblock.Tpo" -c -o memblock.o memblock.c; \




====================================================================== 

---------------------------------------------------------------------- 
 paul - 15-Apr-07 19:43  
---------------------------------------------------------------------- 
Jorge, this is all old stuff that was fixed quite some time ago already
(around rev 2469) 

---------------------------------------------------------------------- 
 jasb - 15-Apr-07 20:18  
---------------------------------------------------------------------- 
But Paul, with the last 2519, i tryed 5 m ago, this still apears.
I'll repast the warnings with 2519, with the debian SID glibc-2.5-1:


dbmail-message.c: In function '_header_cache':
dbmail-message.c:1017: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
dbmail-message.c:1028: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_decode_text' differ in signedness
dbmail-message.c:1036: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_decode_text' differ in signedness
dbmail-message.c: In function 'dbmail_message_cache_fromfield':
dbmail-message.c:1153: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
dbmail-message.c: In function 'dbmail_message_cache_replytofield':
dbmail-message.c:1177: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness



misc.c: In function 'dm_base_subject':
misc.c:648: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_decode_text' differ in signedness
misc.c: In function 'get_param_list':
misc.c:1490: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
misc.c: In function 'dbmail_imap_append_alist_as_plist':
misc.c:1886: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_phrase' differ in signedness
misc.c: In function 'convert_8bit_db_to_mime':
misc.c:2262: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
misc.c:2268: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
misc.c: In function 'imap_get_envelope':
misc.c:2301: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness



imapcommands.c: In function '_do_store':
imapcommands.c:1469: warning: format '%llu' expects type 'long long
unsigned int', but argument 7 has type 'u64_t *' 

---------------------------------------------------------------------- 
 paul - 15-Apr-07 22:32  
---------------------------------------------------------------------- 
What version of libgmime-dev are you on? 

---------------------------------------------------------------------- 
 jasb - 15-Apr-07 22:36  
---------------------------------------------------------------------- 
ii  libgmime-2.0-2-dev           2.2.6-1               MIME library,
unstable version - development 

---------------------------------------------------------------------- 
 aaron - 18-Apr-07 11:03  
---------------------------------------------------------------------- 
I assume the correct change for imapcommands.c:1469 is:

 -     TRACE(TRACE_WARNING, "unable to lookup msginfo struct for [%llu]",
id);
 +     TRACE(TRACE_WARNING, "unable to lookup msginfo struct for [%llu]",
*id);

The signedness errors do not show up when I build. 

---------------------------------------------------------------------- 
 jasb - 18-Apr-07 11:48  
---------------------------------------------------------------------- 
Correct, i've tryed that, will you include that in the next svn rev's?
And the rest of warnings? 

---------------------------------------------------------------------- 
 aaron - 19-Apr-07 20:53  
---------------------------------------------------------------------- 
Paul, do you see these signedness errors? I don't, with GMime 2.2.3, GLib
2.12.11 and GCC 4.1.1, on both x86 and x86-64. 

---------------------------------------------------------------------- 
 jasb - 19-Apr-07 23:25  
---------------------------------------------------------------------- 
oh, my debian must he crazy then!! grrrrr 

---------------------------------------------------------------------- 
 paul - 20-Apr-07 09:33  
---------------------------------------------------------------------- 
No, I don't see these either using gmime 2.2.3 (ubuntu or debian). Havent
tried 2.2.6 yet. 

---------------------------------------------------------------------- 
 aaron - 20-Apr-07 09:38  
---------------------------------------------------------------------- 
Jorge, what is your 'gcc --version'?

On at least one other occassion, Paul's gcc reported signedness errors
that my gcc decided not to tell me about, which was pretty weird. 

---------------------------------------------------------------------- 
 jasb - 20-Apr-07 11:12  
---------------------------------------------------------------------- 
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.


from the debian SID repos 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
13-Apr-07 21:55 jasb           New Issue                                    
13-Apr-07 21:55 jasb           Issue Monitored: jasb                        
15-Apr-07 19:43 paul           Note Added: 0002043                          
15-Apr-07 20:18 jasb           Note Added: 0002044                          
15-Apr-07 22:32 paul           Note Added: 0002045                          
15-Apr-07 22:36 jasb           Note Added: 0002046                          
18-Apr-07 11:03 aaron          Note Added: 0002049                          
18-Apr-07 11:48 jasb           Note Added: 0002050                          
19-Apr-07 20:53 aaron          Note Added: 0002063                          
19-Apr-07 23:25 jasb           Note Added: 0002070                          
20-Apr-07 09:33 paul           Note Added: 0002073                          
20-Apr-07 09:38 aaron          Note Added: 0002074                          
20-Apr-07 11:12 jasb           Note Added: 0002077                          
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to