From c6023774a3e8fde1f6800f6732c5f6d968cb55ba Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Wed, 20 Apr 2022 17:18:57 -0700 Subject: [PATCH] Enable vptr undefined behavior check --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 812e9720f2..646aeefeb4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -187,7 +187,7 @@ if ( ZEEK_SANITIZERS ) list(APPEND _check_list "unreachable") # list(APPEND _check_list "unsigned-integer-overflow") # Not truly UB list(APPEND _check_list "vla-bound") - # list(APPEND _check_list "vptr") # TODO: fix associated errors + list(APPEND _check_list "vptr") # Clang complains if this one is defined and the optimizer is set to -O0. We # only set that optimization level if NO_OPTIMIZATIONS is passed, so disable