#warnings when compiling gpg 1.4.0 on OSX

Werner Koch wk at gnupg.org
Fri Dec 17 19:46:57 CET 2004


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.

> gpg 1.4.0 compiles fine, except the warnings, and all tests have passed.

Thanks,

  Werner




More information about the Gnupg-devel mailing list