Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OzCaO-0003aM-Mc for mharc-grub-devel@gnu.org; Fri, 24 Sep 2010 14:01:28 -0400 Received: from [140.186.70.92] (port=55598 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzCaM-0003a5-4K for grub-devel@gnu.org; Fri, 24 Sep 2010 14:01:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OzCaK-0006QF-Tz for grub-devel@gnu.org; Fri, 24 Sep 2010 14:01:25 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:51435 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OzCaK-0006Pv-Gi for grub-devel@gnu.org; Fri, 24 Sep 2010 14:01:24 -0400 Received: (qmail invoked by alias); 24 Sep 2010 18:01:20 -0000 Received: from 165.126.46.212.adsl.ncore.de (HELO 192.168.2.69) [212.46.126.165] by mail.gmx.net (mp057) with SMTP; 24 Sep 2010 20:01:20 +0200 X-Authenticated: #2145628 X-Provags-ID: V01U2FsdGVkX1+aQSFfDwqaDfnHWsiJNj803WNcv10aD631SPUY3k 39Vf59ExQ0KkVb Date: Fri, 24 Sep 2010 20:01:11 +0200 From: "Thomas Schmitt" To: grub-devel@gnu.org Message-Id: <94331196326062@192.168.2.69> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Subject: trunk/grub fails to build with gcc 4.3.2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2010 18:01:27 -0000 Hi, today i downloaded by: bzr branch http://bzr.savannah.gnu.org/r/grub/trunk/grub Building it on a Debian 5.04 GNU/Linux with gcc 4.3.2 failed: $ make ... cc1: warnings being treated as errors disk/mdraid1x_linux.c: In function 'grub_mdraid_detect': disk/mdraid1x_linux.c:108: error: 'sector' may be used uninitialized in this function ... consequential error messages and abort of the make rum ... In grub-core/disk/mdraid1x_linux.c i see grub_disk_addr_t sector; ... for (minor_version = 0; minor_version < 3; ++minor_version) { switch (minor_version) { case 0: sector = (size - 8 * 2) & ~(4 * 2 - 1); break; case 1: sector = 0; break; case 2: sector = 4 * 2; break; } if (grub_disk_read (disk, sector, 0, sizeof (struct grub_raid_super_1x), &sb)) ... It helps to change "case 2:" to "default:". So this is indeed the spot which itches. There are other warnings to see with other source files which do not lead to abort of make. If there is interest i can post them. Have a nice day :) Thomas