From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19739 invoked by alias); 13 Apr 2009 09:22:58 -0000 Received: (qmail 19475 invoked by uid 48); 13 Apr 2009 09:22:44 -0000 Date: Mon, 13 Apr 2009 09:22:00 -0000 Subject: [Bug c/39748] New: possible bogus offset warning X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dcb314 at hotmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg01085.txt.bz2 I just tried to compile the popular bzip2 package with the GNU gcc version 4.5 snapshot 20090409. The compiler said bzlib.c: In function 'bzopen_or_bzdopen': bzlib.c:1443: warning: offset '2' outside bounds of constant string bzlib.c:1443: warning: offset '3' outside bounds of constant string The source code is if (path==NULL || strcmp(path,"")==0) { This looks like a bogus warning to me. Preprocessed source code attached. No special flags required. -- Summary: possible bogus offset warning Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dcb314 at hotmail dot com GCC host triplet: x86_64-suse-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39748