From: Pyry Haulos Date: Thu, 15 Dec 2016 12:11:43 +0000 (+0200) Subject: Add -Wno-delete-non-virtual-dtor to default cxxflags X-Git-Tag: upstream/0.1.0~9^2~20^2~4^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2830f66396ebea65a3877aa5d88e99cbae2304d7;p=platform%2Fupstream%2FVK-GL-CTS.git Add -Wno-delete-non-virtual-dtor to default cxxflags That warning generates some false negatives that are hard to work around. Change-Id: Ib451eca3af7bf2a6bfd24aa966f89496257b9f0d --- diff --git a/framework/delibs/cmake/CFlags.cmake b/framework/delibs/cmake/CFlags.cmake index 98f0252..2fc624e 100644 --- a/framework/delibs/cmake/CFlags.cmake +++ b/framework/delibs/cmake/CFlags.cmake @@ -47,7 +47,7 @@ if (DE_COMPILER_IS_GCC OR DE_COMPILER_IS_CLANG) set(WARNING_FLAGS "-Wall -Wextra -Wno-long-long -Wshadow -Wundef -Wconversion -Wno-sign-conversion") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_FLAGS} ${WARNING_FLAGS} -ansi -pedantic ") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_FLAGS} ${WARNING_FLAGS}") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_FLAGS} ${WARNING_FLAGS} -Wno-delete-non-virtual-dtor") # Force compiler to generate code where integers have well defined overflow # Turn on -Wstrict-overflow=5 and check all warnings before removing