/ Zope / Apsis / Pound Mailing List / Archive / 2009 / 2009-01 / compiler warnings on CentOS 4

[ << ] [ >> ]

[ ANNOUNCE: Pound - reverse proxy and load balancer ... ] [ https setup problem / Elan Ruusamäe ... ]

compiler warnings on CentOS 4
"Jacob Anderson" <jwa(at)beyond-ordinary.com>
2009-01-14 18:16:59 [ FULL ]
I am building Pound 2.4.4 on CentOS 4, and am getting this compiler warning:

gcc -DF_CONF=\"/usr/local/etc/pound.cfg\" -DVERSION=\""2.4.4"\"
-DC_SSL=\"""\" -DC_T_RSA=\""0"\" -DC_MAXBUF=\""0"\" -DC_OWNER=\"""\"
-DC_GROUP=\"""\" -DC_SUPER=\""0"\" -DC_CERT1L=\""0"\" -g -O2 -pthread -DUPER
-DNEED_STACK -DHAVE_SYSLOG_H=1 -pthread  -D_REENTRANT -D_THREAD_SAFE
-Wstrict-prototypes -pipe   -c -o config.o config.c
config.c: In function `parse_be':
config.c:143: warning: assignment from incompatible pointer type
config.c: In function `t_hash':
config.c:373: warning: this decimal constant is unsigned only in ISO C90

gcc -DF_CONF=\"/usr/local/etc/pound.cfg\" -DVERSION=\""2.4.4"\"
-DC_SSL=\"""\" -DC_T_RSA=\""0"\" -DC_MAXBUF=\""0"\" -DC_OWNER=\"""\"
-DC_GROUP=\"""\" -DC_SUPER=\""0"\" -DC_CERT1L=\""0"\" -g -O2 -pthread -DUPER
-DNEED_STACK -DHAVE_SYSLOG_H=1 -pthread  -D_REENTRANT -D_THREAD_SAFE
-Wstrict-prototypes -pipe   -c -o svc.o svc.c
svc.c: In function `hash_backend':
svc.c:438: warning: this decimal constant is unsigned only in ISO C90

This is directly out of the box, no changes on my part.

GCC version: gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-10)
[...]

Re: [Pound Mailing List] compiler warnings on CentOS 4
Robert Segall <roseg(at)apsis.ch>
2009-01-19 11:58:21 [ FULL ]
On Wed, 2009-01-14 at 09:16 -0800, Jacob Anderson wrote:[...]

warning: this decimal constant is unsigned only in ISO C90 - is not a
problem, as it is used only as a bit mask. The warning is harmless, but
I know of no portable way of avoiding it (gcc is easy, but consider
other compilers as well).

warning: assignment from incompatible pointer type - is a harmless
casting error. We'll take care of that in the next release.[...]

MailBoxer