This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 1816d752af arch/x86_64:Fix build cxx warning.
1816d752af is described below

commit 1816d752af4253df7f917fd9e62c7fdcc8f830a1
Author: cuiziwei <[email protected]>
AuthorDate: Fri Mar 29 15:51:13 2024 +0800

    arch/x86_64:Fix build cxx warning.
    
    Signed-off-by: cuiziwei <[email protected]>
---
 arch/x86_64/src/common/Toolchain.defs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86_64/src/common/Toolchain.defs 
b/arch/x86_64/src/common/Toolchain.defs
index bd6a3e5778..b8e19bbf48 100644
--- a/arch/x86_64/src/common/Toolchain.defs
+++ b/arch/x86_64/src/common/Toolchain.defs
@@ -32,6 +32,9 @@ ifeq ($(CONFIG_FRAME_POINTER),y)
   ARCHOPTIMIZATION += -fno-omit-frame-pointer -fno-optimize-sibling-calls
 endif
 
+ARCHCFLAGS += -fno-common -Wno-attributes
+ARCHCXXFLAGS += -fno-common -Wno-attributes -nostdinc++
+
 ARCHCPUFLAGS = -fno-pic -mcmodel=large -fno-stack-protector -mno-red-zone 
-mrdrnd
 ARCHPICFLAGS = -fPIC
 ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef

Reply via email to