mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #1729 from Kijewski/clang++
make: del no-delete-null-pointer-checks for clang++
This commit is contained in:
commit
0a7a0f1c3e
@ -19,6 +19,14 @@ endif
|
||||
ifeq ($(shell $(CC) -fno-delete-null-pointer-checks -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
|
||||
ifeq ($(shell LANG=C $(CC) -fno-delete-null-pointer-checks -E - 2>&1 1>/dev/null </dev/null | grep warning: | grep -- -fno-delete-null-pointer-checks),)
|
||||
CFLAGS += -fno-delete-null-pointer-checks
|
||||
|
||||
ifneq ($(shell $(CXX) -fno-delete-null-pointer-checks -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
|
||||
CXXUWFLAGS += -fno-delete-null-pointer-checks
|
||||
else
|
||||
ifneq ($(shell LANG=C $(CXX) -fno-delete-null-pointer-checks -E - 2>&1 1>/dev/null </dev/null | grep warning: | grep -- -fno-delete-null-pointer-checks),)
|
||||
CXXUWFLAGS += -fno-delete-null-pointer-checks
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
@ -28,7 +36,8 @@ endif
|
||||
ifeq ($(shell $(CC) -Wstrict-prototypes -Werror=strict-prototypes -Wold-style-definition -Werror=old-style-definition -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
|
||||
# duplicated parameters don't hurt
|
||||
CFLAGS += -Wstrict-prototypes -Werror=strict-prototypes -Wold-style-definition -Werror=old-style-definition
|
||||
CXXUWFLAGS += -Wstrict-prototypes -Wold-style-definition
|
||||
endif
|
||||
|
||||
# Unwanted flags for c++
|
||||
CXXUWFLAGS += -std=gnu99 -std=c99 -Wstrict-prototypes -Wold-style-definition
|
||||
CXXUWFLAGS += -std=%
|
||||
|
Loading…
Reference in New Issue
Block a user