[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GRUB warning level increase

From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: GRUB warning level increase
Date: Fri, 10 Feb 2012 17:00:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120104 Icedove/8.0

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.

Vladimir 'φ-coder/phcoder' Serbinenko

reply via email to

[Prev in Thread] Current Thread [Next in Thread]