This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3991] New: [patch] cleanup superfluous comma operator in assert and assert_perror macros
- From: "ilugo at bridonsecurity dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 Feb 2007 13:34:16 -0000
- Subject: [Bug libc/3991] New: [patch] cleanup superfluous comma operator in assert and assert_perror macros
- Reply-to: sourceware-bugzilla at sourceware dot org
The assert and assert_perror macros in assert.h contain an unnecessary comma
operator in the failure case. __assert_fail and __assert_perror_fail are already
of type void (which is consistent with the first operand of the ?:), there is no
need for the right side of the comma just to get a void expression. The
functions don't return anyway. I'm attaching a patch against the CVS version.
--
Summary: [patch] cleanup superfluous comma operator in assert and
assert_perror macros
Product: glibc
Version: 2.4
Status: NEW
Severity: minor
Priority: P3
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: ilugo at bridonsecurity dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=3991
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.