From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30886 invoked by alias); 14 Jul 2006 19:55:21 -0000 Received: (qmail 30860 invoked by uid 48); 14 Jul 2006 19:55:14 -0000 Date: Fri, 14 Jul 2006 19:55:00 -0000 From: "Jerry dot James at usu dot edu" To: glibc-bugs@sources.redhat.com Message-ID: <20060714195513.2926.Jerry.James@usu.edu> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/2926] New: assert macro contains unreachable code X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00034.txt.bz2 List-Id: When compiling with gcc and the -Wunreachable-code flag, gcc warns about every use of the assert macro from . This was reported as a gcc bug (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22414), but the gcc team declared it to be a glibc bug. Indeed, moving __ASSERT_VOID_CAST inward to apply to the two instances of 0 in assert and assert_perror leaves the assertions working correctly and eliminates the warnings for me. I don't see a place to include a patch on this page, so I'll submit the bug and hope I can attach a patch later. -- Summary: assert macro contains unreachable code Product: glibc Version: 2.4 Status: NEW Severity: minor Priority: P3 Component: libc AssignedTo: drepper at redhat dot com ReportedBy: Jerry dot James at usu dot edu CC: glibc-bugs at sources dot redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=2926 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.