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

Jim Meyering jim@meyering.net
Wed Jul 16 17:29:00 GMT 2014


On Tue, Jul 15, 2014 at 7:02 PM, Paul Eggert <eggert@cs.ucla.edu> wrote:
> Doesn't the "#ifdef __STRICT_ANSI__" need to be "#if !defined __GNUC__ ||
> defined __STRICT_ANSI__"?

Good point.  I've updated the patch.

> 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