From: Hans-Bernhard B. <br...@ph...> - 2004-04-15 12:36:38
|
On Thu, 15 Apr 2004, Lars Hecking wrote: [... regarding OSF1 / Digital Unix / Tru64 ...] > configuring with either 'CC=cc' or 'CC="cc -std"' gives rise to warnings > like this: > > cc -std -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term -DBINDIR=\"/usr/local/bin\" -DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.0\" -DCONTACT=\"gnu...@li...\" -DHELPFILE=\"/usr/local/share/gnuplot/4.0/gnuplot.gih\" -I/usr/local/include -g -c `test -f 'axis.c' || echo './'`axis.c > cc: Warning: axis.c, line 188: In the definition of the function "axis_unlog_interval", the promoted type of checkrange is incompatible with the type of the corresponding parameter in a prior declaration. (promotmatchw) > TBOOLEAN checkrange; > -------------^ > > cpp analysis shows that TBOOLEAN gets defined to _Bool, which in turn is > typedef'd to unsigned char. I revived my access to a Tru64 box, and saw the same thing. The weird thing is that if I change the affected function definitions into ANSI style, the problem goes away. That would seem to go against the grain of the whole way gnuplot handles pre-ANSI vs. ANSI C (optional ANSI prototype declarations, but K&R definitions), which seems to be accepted by just about every other compiler on the planet. -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |