This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-ia64-devel] "-Wall" option doesn't work

To: <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-ia64-devel] "-Wall" option doesn't work
From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Date: Thu, 12 Jan 2006 09:33:41 +0800
Delivery-date: Thu, 12 Jan 2006 01:40:05 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcYXGDf1xrS3OoqNRpyFfRv6IV5BPQ==
Thread-topic: "-Wall" option doesn't work
Hi all,
        I have been wondering why "-Wall" option doesn't work, and I had
suffered much from this. Without -Wall, gcc will not complain about
missing prototype etc., for example, assume function A return type is
unsigned long, according to calling convention, if function A is called
and there is no prototype, the return type will be int by default, which
is 4 type. This kind of issue is hard to debug. Below small patch make
"-Wall" take effect, seems "-w" overwrites "-Wall", then you recompile,
you will find a lot of warning messages like redefinition, missing
prototype etc. I would like to remove all these warning message, but all
my hands are full.

Anyone would like to volunteer; this will help community a lot.

diff -r 5bd5121efa22 xen/arch/ia64/Rules.mk
--- a/xen/arch/ia64/Rules.mk    Wed Jan 11 05:57:14 2006
+++ b/xen/arch/ia64/Rules.mk    Thu Jan 12 09:08:44 2006
@@ -26,7 +26,7 @@
 CFLAGS  += -Wno-pointer-arith -Wredundant-decls
 CFLAGS += -ffixed-r13 -mfixed-range=f12-f15,f32-f127
-CFLAGS += -w -g
+CFLAGS += -g


Xen-ia64-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>