This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Notice clock_* functions in librt.so for old GLIBC_2.18 builds?


On 02/22/2014 02:33 PM, Roland McGrath wrote:
>> Roland McGrath <roland@hack.frob.com> writes:
>>
>>> Also, someone should try turning on -Wundef in the build and see if it
>>> generates any warnings.
>>
>> Long way to go.
> 
> Thanks for doing the exercise.  That is disappointing indeed, but it
> doesn't look intractable.  I think we should get started ASAP on piecemeal
> cleanup of these.  Perhaps we should even put -Wundef in now so everybody
> has all the cases thrust before them, and change it to -Werror=undef
> eventually when we're done cleaning up.
> 
> It probably makes sense to take them one macro at a time across all cases
> rather than files at a time.  I suspect most are straightforward cases for
> s/if/ifdef/.  Others (e.g. _POSIX_* et al) actually do properly want to be
> "#if defined foo && foo" and the like.  At least a few seem like probable
> actual bugs from missing #includes, albeit almost certainly benign ones not
> affecting the #if resolution in actuality (RTLD_PRIVATE_ERRNO sticks out).

I agree. Enable -Wundef *right now* :-)

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]