This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: assert.h: allow gcc to detect assert(a = 1) errors
- From: Jim Meyering <jim at meyering dot net>
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Wed, 16 Jul 2014 10:29:16 -0700
- Subject: Re: assert.h: allow gcc to detect assert(a = 1) errors
- Authentication-results: sourceware.org; auth=none
- References: <CA+8g5KFMi9=8gs0HD=YgrS7JSS51pA5aqSJF4Y1YgTQMOXYuZg at mail dot gmail dot com> <53C5DD4E dot 9090907 at cs dot ucla dot edu>
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.