#warnings when compiling gpg 1.4.0 on OSX

Stéphane Corthésy stephane at sente.ch
Sat Dec 18 14:20:06 CET 2004


Hi,

On Dec 17, 2004, at 7:46 PM, Werner Koch wrote:

> On Fri, 17 Dec 2004 15:45:07 +0100, Stéphane Corthésy said:
>
>> keylist.c: In function `list_keyblock_print':
>> keylist.c:790: warning: field width is not type int (arg 2)
>
>> passphrase.c: In function `agent_get_passphrase':
>> passphrase.c:754: warning: passing arg 4 of `readn' from incompatible
>> pointer type
>
>> keyedit.c: In function `show_key_with_all_names':
>> keyedit.c:2347: warning: field width is not type int (arg 2)
>
> Fixed in CVS.
>
>
>> On OSX, size_t is defined as an unsigned long.
>
> Are int and long both 32 bit?  If not you should case the wield width
> arguments to int.


Even on a G5 (64bits), long and int are both 32 bit.


>> gpg 1.4.0 compiles fine, except the warnings, and all tests have 
>> passed.
>
> Thanks,
>
>   Werner
>
>
> _______________________________________________
> Gnupg-devel mailing list
> Gnupg-devel at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-devel


Thanks,

Stéphane




More information about the Gnupg-devel mailing list