some messages from a contemporary HP-UX 11.23 compiler

Mark Andrews Mark_Andrews at isc.org
Tue Nov 15 01:04:19 UTC 2005


> Mark Andrews wrote:
> >> For my own nefarious porpoises I decided to download and compile 9.3.2b2 o
> n
> >> an HP-UX 11iv2 (aka 11.23) IPF system with what I believe is a very
> >> up-to-date compiler. A number of messages were emitted which may or may no
> t
> >> be of import, and honestly, I'm not sure if they point fingers at BIND
> >> code or the compiler .
> > 
> > 
> > 	I suspect the answer is both.
> 
> that sounds rather likely.
> 
> fwiw, the compile on HP-UX 11.11 with a rather older compiler was otherwise 
> "clean" but I do have a question about:
> 
> >>   +w1 +W 474,530,2193,2236  -c entropy.c
> 
> Were those four warnings being suppressed because there was a bug in some rev
>  of 
> the HP-UX compilers?  If so, how long should that suppression remain?  The 
> paranoid in me thinks that if the compiler has been fixed, perhaps suppressin
> g 
> those warnings isn't such a good idea.  At the risk of giving myself an actio
> n 
> item I'm not entirely sure how to implement :), maybe it would be good to hav
> e a 
> configure test to see if the compiler generates "invalid" warnings for those 
> four before suppressing them.

	Some of them are because the compiler is just plain too noisy.
	Suppressing them lets you see the wheat rather than the chaff.

	These are the warnings we currently ignore.  Some, but not all,
	are due to badness in the system header files.

	Mark

	Compiler cc:
IGNORED: cc: "masterdump.c", line 1303: warning 510: Condition always evaluates to false: If clause will never be executed.
IGNORED: cc: "inet_lnaof.c", line 57: warning 732: Different types treated as unsigned for ==.
IGNORED: cc: "inet_netof.c", line 56: warning 732: Different types treated as unsigned for ==.
IGNORED: cc: "eventlib.c", line 210: warning 517: Function returns no value.
IGNORED: cc: "res_init.c", line 641: warning 732: Different types treated as unsigned for ==.
IGNORED: cc: "wire_test.c", line 51: warning 517: Function returns no value.
 
	Compiler gcc:
IGNORED: net.c:41: warning: missing braces around initializer
IGNORED: net.c:41: warning: (near initialization for `once.po_mutex.m_short')
IGNORED: net.c:42: warning: missing braces around initializer
IGNORED: net.c:42: warning: (near initialization for `once_ipv6only.po_mutex.m_short')
IGNORED: net.c:43: warning: missing braces around initializer
IGNORED: net.c:43: warning: (near initialization for `once_ipv6pktinfo.po_mutex.m_short')
IGNORED: strerror.c:51: warning: missing braces around initializer
IGNORED: strerror.c:51: warning: (near initialization for `once.po_mutex.m_short')
IGNORED: hash.c:104: warning: missing braces around initializer
IGNORED: hash.c:104: warning: (near initialization for `once.po_mutex.m_short')
IGNORED: lib.c:42: warning: missing braces around initializer
IGNORED: lib.c:42: warning: (near initialization for `msgcat_once.po_mutex.m_short')
IGNORED: random.c:39: warning: missing braces around initializer
IGNORED: random.c:39: warning: (near initialization for `once.po_mutex.m_short')
IGNORED: result.c:109: warning: missing braces around initializer
IGNORED: result.c:109: warning: (near initialization for `once.po_mutex.m_short')
IGNORED: lib.c:44: warning: missing braces around initializer
IGNORED: lib.c:44: warning: (near initialization for `msgcat_once.po_mutex.m_short')
IGNORED: result.c:42: warning: missing braces around initializer
IGNORED: result.c:42: warning: (near initialization for `once.po_mutex.m_short')
IGNORED: db.c:68: warning: missing braces around initializer
IGNORED: db.c:68: warning: (near initialization for `once.po_mutex.m_short')
IGNORED: dlz.c:83: warning: missing braces around initializer
IGNORED: dlz.c:83: warning: (near initialization for `once.po_mutex.m_short')
IGNORED: lib.c:44: warning: missing braces around initializer
IGNORED: lib.c:44: warning: (near initialization for `msgcat_once.po_mutex.m_short')
IGNORED: name.c:198: warning: missing braces around initializer
IGNORED: name.c:198: warning: (near initialization for `once.po_mutex.m_short')
IGNORED: result.c:187: warning: missing braces around initializer
IGNORED: result.c:187: warning: (near initialization for `once.po_mutex.m_short')
IGNORED: dst_lib.c:46: warning: missing braces around initializer
IGNORED: dst_lib.c:46: warning: (near initialization for `msgcat_once.po_mutex.m_short')
IGNORED: dst_result.c:57: warning: missing braces around initializer
IGNORED: dst_result.c:57: warning: (near initialization for `once.po_mutex.m_short')
IGNORED: lwresd.c:73: warning: missing braces around initializer
IGNORED: lwresd.c:73: warning: (near initialization for `once.po_mutex.m_short')
IGNORED: getprotoent_r.c:214: warning: 'getprotoent_r_unknown_system' defined but not used
IGNORED: getservent_r.c:235: warning: 'getservent_r_unknown_system' defined but not used
IGNORED: gai_strerror.c:57: warning: missing braces around initializer
IGNORED: gai_strerror.c:57: warning: (near initialization for `lock.m_short')
IGNORED: irs_data.c:128: warning: missing braces around initializer
IGNORED: irs_data.c:128: warning: (near initialization for `keylock.m_short')
IGNORED: memcluster.c:95: warning: missing braces around initializer
IGNORED: memcluster.c:95: warning: (near initialization for `memlock.m_short')
IGNORED: mtctxres.c:108: warning: missing braces around initializer
IGNORED: mtctxres.c:108: warning: (near initialization for `keylock.m_short')

> rick jones
> 
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org


More information about the bind-workers mailing list