[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-ia64-devel] "-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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |