Bug#133971: -W<everything> gives warnings in the glibc headers
> I have found two cases in libc headers where it uses #if <foo> instead of
> #ifdef <foo> which will give a warning with the proper -W options to gcc.
>
> The instances are:
>
> usr/include/math.h:
> #if __USE_ISOC99
> <several instances>
>
> usr/include/bits/string2.h:
> #if _STRING_ARCH_unaligned
>
> Both should probably be changed to #ifdef, at least __USE_ISOC99 is used
> as an ifdef in other places in the same file.
Your observations seems fine. However which gcc option did you get
warnings with these headers? I welcome you with a sample test program.
Regards,
-- gotom
Reply to: