Re: [PATCH] fixes compilers warnings

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi,

1) doesn't fix warnings (I fixed it):
gwlib/charset.c: In function ‘charset_convert’:
gwlib/charset.c:635: warning: format ‘%ld’ expects type ‘long int’,  
but argument 3 has type ‘int’
gwlib/charset.c:669: warning: format ‘%ld’ expects type ‘long int’,  
but argument 4 has type ‘int’

2) doesn't fix all warnings (I fixed it):
gwlib/date.c: In function ‘date_format_http’:
gwlib/date.c:113: warning: pointer targets in passing argument 1 of  
‘sprintf’ differ in signedness
gwlib/date.c:115: warning: pointer targets in passing argument 1 of  
‘octstr_create_real’ differ in signedness

Thanks,
Alex

Am 16.04.2009 um 14:52 schrieb Vincent CHAVANIS:

>
> This fixes:
>
> 1/
> gwlib/charset.c: In function 'charset_convert':
> gwlib/charset.c:635: attention : format '%d' expects type 'int', but  
> argument 3 has type 'long int'
> gwlib/charset.c:669: attention : format '%d' expects type 'int', but  
> argument 4 has type 'long int'
>
> 2/
> /* now make it const - This should not be modifiable */
> gwlib/date.c:69: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:69: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:69: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:69: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:69: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:69: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:70: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:73: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:73: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:73: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:73: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:73: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:73: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:74: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:74: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:74: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:74: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:74: attention : pointer targets in initialization  
> differ in signedness
> gwlib/date.c:75: attention : pointer targets in initialization  
> differ in signedness
>
>
>
>
> -- 
> Telemaque - 06560 SOPHIA-ANTIPOLIS - (FR)
> Service Technique/Reseau - NOC
> Direction du Developpement xMS+
> http://www.telemaque.fr/
> [email protected]
> Tel : +33 4 92 90 99 84 (fax 9142)
> <charset_c_warn.txt><date_fix.txt>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.