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

[xen master] xen/hypervisor: Don't use cc-option-add for -Wdeclaration-after-statement



commit d4bfd3899886d0fbe259c20660dadb1e00170f2d
Author:     Julien Grall <jgrall@xxxxxxxxxx>
AuthorDate: Wed Dec 6 19:19:58 2023 +0000
Commit:     Julien Grall <jgrall@xxxxxxxxxx>
CommitDate: Wed Dec 6 19:19:59 2023 +0000

    xen/hypervisor: Don't use cc-option-add for -Wdeclaration-after-statement
    
    Per Andrew's comment in [1] all the compilers we support should
    recognize the flag.
    
    I forgot to address the comment while committing.
    
    [1] fcf00090-304a-49f7-8a61-a54347e90a3b@xxxxxxxxxx
    
    Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
---
 xen/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/Makefile b/xen/Makefile
index 360fb6dcae..21832d6402 100644
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -393,7 +393,7 @@ CFLAGS-$(CONFIG_CC_SPLIT_SECTIONS) += -ffunction-sections 
-fdata-sections
 
 CFLAGS += -nostdinc -fno-builtin -fno-common
 CFLAGS += -Werror -Wredundant-decls -Wwrite-strings -Wno-pointer-arith
-$(call cc-option-add,CFLAGS,CC,-Wdeclaration-after-statement)
+CFLAGS += -Wdeclaration-after-statement
 $(call cc-option-add,CFLAGS,CC,-Wvla)
 CFLAGS += -pipe -D__XEN__ -include $(srctree)/include/xen/config.h
 CFLAGS-$(CONFIG_DEBUG_INFO) += -g
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

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