Clang: Do not use new pointer option

This commit is contained in:
Lorenz Meier
2016-05-11 12:59:41 +02:00
parent 34baf01d7e
commit e016f6ca38
+4 -3
View File
@@ -650,9 +650,10 @@ function(px4_add_common_flags)
-D__CUSTOM_FILE_IO__ -D__CUSTOM_FILE_IO__
) )
if (NOT "${OS}" STREQUAL "qurt") if (NOT (${CMAKE_C_COMPILER_ID} MATCHES ".*Clang.*"))
# -fcheck-new is not supported by clang-3.5 from # -fcheck-new is a no-op for Clang in general
# HEXAGON_Tools/7.2.10/Tools/bin/hexagon-clang. # and has no effect, but can generate a compile
# error for some OS
list(APPEND cxx_compile_flags list(APPEND cxx_compile_flags
-fcheck-new -fcheck-new
) )