From 18b44fafba083381f31bbbb189b6d982ef9492ed Mon Sep 17 00:00:00 2001 From: Kai Zhao Date: Sun, 15 Sep 2024 23:19:41 -0400 Subject: [PATCH] 1. update annotations 2. fix make warnings --- CMakeLists.txt | 4 ++-- include/SZ3/utils/ska_hash/unordered_map.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ecf76b53..143ed7b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,8 +13,8 @@ option(BUILD_SHARED_LIBS "build shared libraries by default" ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) if (MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj") -else() - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-reorder-ctor") +else() #-Wunused-parameter -Wsign-compare + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-sign-compare -Wno-unused-parameter -Wsuggest-override -Wold-style-cast -Wcast-qual -Wzero-as-null-pointer-constant -Wextra-semi -Wmissing-prototypes -Wnon-virtual-dtor -Wcast-align -Wunused-variable -Wnewline-eof -Wcomma") endif() set(default_build_type "Release") if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) diff --git a/include/SZ3/utils/ska_hash/unordered_map.hpp b/include/SZ3/utils/ska_hash/unordered_map.hpp index 39e31427..7ac6ca26 100644 --- a/include/SZ3/utils/ska_hash/unordered_map.hpp +++ b/include/SZ3/utils/ska_hash/unordered_map.hpp @@ -885,4 +885,4 @@ class unordered_set }; } // end namespace ska -#pragma GCC diagnostic pop \ No newline at end of file +#pragma GCC diagnostic pop