From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Rvstc-0005dJ-ML for mharc-grub-devel@gnu.org; Fri, 10 Feb 2012 11:00:24 -0500 Received: from eggs.gnu.org ([140.186.70.92]:35163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvstW-0005P9-19 for grub-devel@gnu.org; Fri, 10 Feb 2012 11:00:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvstQ-0007Cm-5z for grub-devel@gnu.org; Fri, 10 Feb 2012 11:00:17 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:47068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvstP-0007Cc-S4 for grub-devel@gnu.org; Fri, 10 Feb 2012 11:00:12 -0500 Received: by wera13 with SMTP id a13so2625399wer.0 for ; Fri, 10 Feb 2012 08:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=yK310Bvyvye0dj2gLkhu34z6To+9pDregy5/g7oPaiM=; b=I/FQjWYDCVkIwlo4jv/0BREHeMysO+Pe6Jx+1WpMG7baC14RWMF3ul0IShuBkZUFDd JJu3u31wdCf38CccXa82lPZRe3b8fgMZv41j8NJTVYoLM4CrKWKOEnIF4MlryNOqAAc3 7FLCAN/AiRUkAN+SUtlm3C6Nmteut8PdLvas4= Received: by 10.216.139.197 with SMTP id c47mr1019774wej.15.1328889610758; Fri, 10 Feb 2012 08:00:10 -0800 (PST) Received: from debian.x201.phnet (93-93.203-62.cust.bluewin.ch. [62.203.93.93]) by mx.google.com with ESMTPS id er8sm16848551wib.9.2012.02.10.08.00.09 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Feb 2012 08:00:09 -0800 (PST) Message-ID: <4F353F08.5000808@gmail.com> Date: Fri, 10 Feb 2012 17:00:08 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120104 Icedove/8.0 MIME-Version: 1.0 To: The development of GRUB 2 Subject: GRUB warning level increase Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 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, 10 Feb 2012 16:00:23 -0000 Hello, all. I have increased the warning level in GRUB. This is done for quicker discovery and correction of the bugs which would be otherwise hard to track. Mostly it enabled warnings regarding guidelines which are already followed by GRUB. Most important one is -Wcast-align. x86 doesn't enforce any alignment but the other platforms do. And since platform-independent code is usually written and tested on x86, it's important to ensure that it's properly aligned. The invariants checked by -Wcast-align give the necessary guarantee as long as void * isn't involved. Some code is difficult to write in a way to satisfy the warning and/or is platform-specific, in this case #pragma exceptions can be done. For imported code we can add -Wno-* to module cflags for less important (mostly stylistic) warnings. Also if some warnings are too annoying we can drop them. -- Regards Vladimir 'φ-coder/phcoder' Serbinenko