mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +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
|
ARCHCFLAGS += -Wstrict-prototypes -Wno-attributes -Wno-unknown-pragmas
|
||||||
ARCHCXXFLAGS += -nostdinc++ -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),)
|
ifneq ($(CONFIG_CXX_STANDARD),)
|
||||||
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -95,6 +95,15 @@ ARCHCXXFLAGS += -fno-common -nostdinc++
|
|||||||
ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Werror -Wno-attributes -Wno-unknown-pragmas
|
ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Werror -Wno-attributes -Wno-unknown-pragmas
|
||||||
ARCHCXXFLAGS += -Wall -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),)
|
ifneq ($(CONFIG_CXX_STANDARD),)
|
||||||
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -83,6 +83,15 @@ ARCHCXXFLAGS += -fno-common -nostdinc++
|
|||||||
ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas
|
ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas
|
||||||
ARCHCXXFLAGS += -Wall -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),)
|
ifneq ($(CONFIG_CXX_STANDARD),)
|
||||||
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -93,6 +93,15 @@ ARCHCXXFLAGS += -fno-common -nostdinc++
|
|||||||
ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas
|
ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas
|
||||||
ARCHCXXFLAGS += -Wall -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),)
|
ifneq ($(CONFIG_CXX_STANDARD),)
|
||||||
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -97,6 +97,15 @@ ARCHCXXFLAGS += -fno-common -nostdinc++
|
|||||||
ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas
|
ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas
|
||||||
ARCHCXXFLAGS += -Wall -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),)
|
ifneq ($(CONFIG_CXX_STANDARD),)
|
||||||
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user