This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
assert.h: allow gcc to detect assert(a = 1) errors
- From: Jim Meyering <jim at meyering dot net>
- To: libc-alpha at sourceware dot org
- Date: Tue, 15 Jul 2014 17:04:04 -0700
- Subject: assert.h: allow gcc to detect assert(a = 1) errors
- Authentication-results: sourceware.org; auth=none
Hello, I noticed that the definition of assert masks
accidental assignment errors that gcc would detect
in any other context, so wrote a patch:
https://bugzilla.redhat.com/show_bug.cgi?id=1105335
Two questions:
- can anyone see a problem with the patch I proposed?
- do you think it's reasonable to push before the release?
Thanks,
Jim