Compiler warnings

Hal Murray hmurray at megapathdsl.net
Thu Jul 11 07:54:06 UTC 2019


Is there a reason that warnings don't default to on?


When configured with --enable-warnings, I get this on an old gcc.
  gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)

../../ntpd/ntp_wrapdate.c: In function 'eval_gps_time':
../../ntpd/ntp_wrapdate.c:226: warning: declaration of 'refclock_name'™ 
shadows a global declaration
../../include/ntp_refclock.h:192: warning: shadowed declaration is here

It looks like a legitimate warning to me.

The question is why don't we get similar warnings on newer compilers?



-- 
These are my opinions.  I hate spam.





More information about the devel mailing list