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

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


  • To: <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
  • 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  += -DIA64 -DXEN -DLINUX_2_6 -DV_IOSAPIC_READY
 CFLAGS += -ffixed-r13 -mfixed-range=f12-f15,f32-f127
-CFLAGS += -w -g
+CFLAGS += -g
 


Thanks,
-Anthony 


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.