From owner-freebsd-current@FreeBSD.ORG Sat Jul 12 08:52:31 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D721B37B401 for ; Sat, 12 Jul 2003 08:52:31 -0700 (PDT) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [66.31.45.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC50443F3F for ; Sat, 12 Jul 2003 08:52:30 -0700 (PDT) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1])h6CFrXrx080099 for ; Sat, 12 Jul 2003 11:53:34 -0400 (EDT) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)h6CFrXXa080098 for freebsd-current@freebsd.org; Sat, 12 Jul 2003 11:53:33 -0400 (EDT) Date: Sat, 12 Jul 2003 11:53:33 -0400 From: Craig Rodrigues To: freebsd-current@freebsd.org Message-ID: <20030712155333.GA79322@crodrigues.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: GCC 3.3.1, new warnings with X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2003 15:52:32 -0000 Hi, If I compile the following program: #include int main(int argc, char *argv[] { return 0; } with the following flags: g++ -W -Wall b.cc I get lots of warnings that did not appear in GCC 3.2: In file included from /usr/include/c++/3.3/bits/locale_facets.tcc:43, from /usr/include/c++/3.3/locale:47, from /usr/include/c++/3.3/bits/ostream.tcc:37, from /usr/include/c++/3.3/ostream:535, from /usr/include/c++/3.3/iostream:45, from b.cc:1: /usr/include/c++/3.3/limits:630: warning: comparison of unsigned expression < 0 is always false /usr/include/c++/3.3/limits:631: warning: comparison of unsigned expression < 0 is always false /usr/include/c++/3.3/limits:730: warning: comparison of unsigned expression < 0 is always false /usr/include/c++/3.3/limits:731: warning: comparison of unsigned expression < 0 is always false /usr/include/c++/3.3/limits:830: warning: comparison of unsigned expression < 0 is always false /usr/include/c++/3.3/limits:831: warning: comparison of unsigned expression < 0 is always false Is there a way to fix the header file? -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org