This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/3991] New: [patch] cleanup superfluous comma operator in assert and assert_perror macros


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]