Przeglądaj źródła

Merge pull request #3 from smspillaz/issues/1

Don't emit an error for deleting an object with a nonvirtual dtor.
master
Matt Arsenault 11 lat temu
rodzic
commit
666bcc560d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      FindUBSan.cmake

+ 1
- 1
FindUBSan.cmake Wyświetl plik

@@ -62,7 +62,7 @@ unset(CMAKE_REQUIRED_FLAGS)
# produces a broken package which doesn't include the ubsan
# compiler-rt, so check that it actually works with a linked program
# before trying to use it
set(CMAKE_REQUIRED_FLAGS "${UNDEFINED_BEHAVIOR_SANITIZER_FLAG}")
set(CMAKE_REQUIRED_FLAGS "${UNDEFINED_BEHAVIOR_SANITIZER_FLAG} -Wno-error=delete-non-virtual-dtor")

check_cxx_source_runs(
"


Ładowanie…
Anuluj
Zapisz