Fix Wno-delete-non-virtual-dtor flag to be passed only for .cpp files.

Former-commit-id: 4f8b31483ddf784589bc2bd53f736772147c631d
This commit is contained in:
Vincent Herbet 2013-08-10 19:29:28 +02:00
parent 419c8f6ee6
commit da30315556
21 changed files with 21 additions and 21 deletions

View File

@ -105,7 +105,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -74,7 +74,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -75,7 +75,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -85,7 +85,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -85,7 +85,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -85,7 +85,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -85,7 +85,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -86,7 +86,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -87,7 +87,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -85,7 +85,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -85,7 +85,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -86,7 +86,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -89,7 +89,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -88,7 +88,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -85,7 +85,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -85,7 +85,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -85,7 +85,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -98,7 +98,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -86,7 +86,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -85,7 +85,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang

View File

@ -86,7 +86,7 @@ endif
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7
ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1" ifeq "$(shell expr $(IS_CLANG) \& $(CPP_MAJOR) \>= 3 \| $(CPP_MAJOR) \>= 4 \& $(CPP_MINOR) \>= 7)" "1"
CFLAGS += -Wno-delete-non-virtual-dtor CPPFLAGS += -Wno-delete-non-virtual-dtor
endif endif
# OS is Linux and not using clang # OS is Linux and not using clang