assert.h: allow gcc to detect assert(a = 1) errors

Paul Eggert eggert@cs.ucla.edu
Wed Jul 16 02:03:00 GMT 2014


Doesn't the "#ifdef __STRICT_ANSI__" need to be "#if !defined __GNUC__ 
|| defined __STRICT_ANSI__"?

Too bad 'assert' can't warn about its argument having side effects....

We're sort of in a freeze, so I'd wait.



More information about the Libc-alpha mailing list