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: -Wundef fixes


On Mon, 29 Dec 2014, Siddhesh Poyarekar wrote:

> Hi,
> 
> I have checked in patches to fix the remaining -Wundef warnings, so
> now the build log should be clean for most configurations.  I had
> noticed the odd -Wundef warning on other architectures, which I'll
> have a more clear report on once my cross-builds are complete.

Once the build *and test* is free of -Wundef warnings for at least one 
configuration, -Wno-error=undef should be removed.  For a test run on 
x86_64 I currently see:

In file included from tst-utmpx.c:2:0:
tst-utmp.c:42:5: warning: "_HAVE_UT_TYPE" is not defined [-Wundef]
 #if _HAVE_UT_TYPE || defined UTMPX
     ^
In file included from tst-utmpx.c:2:0:
tst-utmp.c:78:5: warning: "_HAVE_UT_TV" is not defined [-Wundef]
 #if _HAVE_UT_TV || defined UTMPX
     ^
tst-utmp.c: In function 'simulate_login':
tst-utmp.c:170:5: warning: "_HAVE_UT_TV" is not defined [-Wundef]
 #if _HAVE_UT_TV - 0 || defined UTMPX
     ^
tst-utmp.c: In function 'simulate_logout':
tst-utmp.c:204:5: warning: "_HAVE_UT_TV" is not defined [-Wundef]
 #if _HAVE_UT_TV - 0 || defined UTMPX
     ^

and

tst-execstack.c:25:5: warning: "USE_PTHREADS" is not defined [-Wundef]
 #if USE_PTHREADS
     ^
tst-execstack.c: In function 'do_test':
tst-execstack.c:88:5: warning: "USE_PTHREADS" is not defined [-Wundef]
 #if USE_PTHREADS
     ^
tst-execstack.c:110:5: warning: "USE_PTHREADS" is not defined [-Wundef]
 #if USE_PTHREADS
     ^
tst-execstack.c:161:5: warning: "USE_PTHREADS" is not defined [-Wundef]
 #if USE_PTHREADS
     ^
tst-execstack.c:206:5: warning: "USE_PTHREADS" is not defined [-Wundef]
 #if USE_PTHREADS
     ^

-- 
Joseph S. Myers
joseph@codesourcery.com


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