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: Paul Eggert <eggert at cs dot ucla dot edu>
- To: Jim Meyering <jim at meyering dot net>, libc-alpha at sourceware dot org
- Date: Tue, 15 Jul 2014 19:02:54 -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>
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.