mirror of
https://github.com/apache/nuttx.git
synced 2026-09-22 14:41:29 +08:00
nuttx/arch:add -Wno-psabi to Toolchain.defs
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
@@ -270,6 +270,15 @@ endif
|
||||
ARCHCFLAGS += -Wstrict-prototypes -Wno-attributes -Wno-unknown-pragmas
|
||||
ARCHCXXFLAGS += -nostdinc++ -Wno-attributes -Wno-unknown-pragmas
|
||||
|
||||
# When all C++ code is built using GCC 7.1 or a higher version,
|
||||
# we can safely disregard warnings of the type "parameter passing for X changed in GCC 7.1."
|
||||
# Refer to : https://stackoverflow.com/questions/48149323/what-does-the-gcc-warning-project-parameter-passing-for-x-changed-in-gcc-7-1-m
|
||||
|
||||
ifneq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),y)
|
||||
ARCHCFLAGS += -Wno-psabi
|
||||
ARCHCXXFLAGS += -Wno-psabi
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_CXX_STANDARD),)
|
||||
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
||||
endif
|
||||
|
||||
@@ -95,6 +95,15 @@ ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||
ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Werror -Wno-attributes -Wno-unknown-pragmas
|
||||
ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas
|
||||
|
||||
# When all C++ code is built using GCC 7.1 or a higher version,
|
||||
# we can safely disregard warnings of the type "parameter passing for X changed in GCC 7.1."
|
||||
# Refer to : https://stackoverflow.com/questions/48149323/what-does-the-gcc-warning-project-parameter-passing-for-x-changed-in-gcc-7-1-m
|
||||
|
||||
ifneq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),y)
|
||||
ARCHCFLAGS += -Wno-psabi
|
||||
ARCHCXXFLAGS += -Wno-psabi
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_CXX_STANDARD),)
|
||||
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
||||
endif
|
||||
|
||||
@@ -83,6 +83,15 @@ ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||
ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas
|
||||
ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas
|
||||
|
||||
# When all C++ code is built using GCC 7.1 or a higher version,
|
||||
# we can safely disregard warnings of the type "parameter passing for X changed in GCC 7.1."
|
||||
# Refer to : https://stackoverflow.com/questions/48149323/what-does-the-gcc-warning-project-parameter-passing-for-x-changed-in-gcc-7-1-m
|
||||
|
||||
ifneq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),y)
|
||||
ARCHCFLAGS += -Wno-psabi
|
||||
ARCHCXXFLAGS += -Wno-psabi
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_CXX_STANDARD),)
|
||||
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
||||
endif
|
||||
|
||||
@@ -93,6 +93,15 @@ ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||
ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas
|
||||
ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas
|
||||
|
||||
# When all C++ code is built using GCC 7.1 or a higher version,
|
||||
# we can safely disregard warnings of the type "parameter passing for X changed in GCC 7.1."
|
||||
# Refer to : https://stackoverflow.com/questions/48149323/what-does-the-gcc-warning-project-parameter-passing-for-x-changed-in-gcc-7-1-m
|
||||
|
||||
ifneq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),y)
|
||||
ARCHCFLAGS += -Wno-psabi
|
||||
ARCHCXXFLAGS += -Wno-psabi
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_CXX_STANDARD),)
|
||||
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
||||
endif
|
||||
|
||||
@@ -97,6 +97,15 @@ ARCHCXXFLAGS += -fno-common -nostdinc++
|
||||
ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas
|
||||
ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas
|
||||
|
||||
# When all C++ code is built using GCC 7.1 or a higher version,
|
||||
# we can safely disregard warnings of the type "parameter passing for X changed in GCC 7.1."
|
||||
# Refer to : https://stackoverflow.com/questions/48149323/what-does-the-gcc-warning-project-parameter-passing-for-x-changed-in-gcc-7-1-m
|
||||
|
||||
ifneq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),y)
|
||||
ARCHCFLAGS += -Wno-psabi
|
||||
ARCHCXXFLAGS += -Wno-psabi
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_CXX_STANDARD),)
|
||||
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user