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

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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: [PATCH] Tweak assert -DNDEBUG for the new-Wunused-but-set-{variable,parameter} warnings


Unfortunately I think this is wrongly incompatible, as Andreas said.
e.g., consider:

#ifndef NDEBUG
static int checker () { ... }
#endif

...
	assert (checker () == 0);
...

Or even worse, it could be hairy macros so that under NDEBUG
the expression is actually unparseable.


Thanks,
Roland


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