Skip to content

Commit

Permalink
build: remove some false-positive warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed Nov 16, 2024
1 parent c2bab88 commit 4d9b8ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/CompilerWarnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function(set_project_warnings project_name)
/permissive- # standards conformance mode for MSVC compiler.
/wd4996 #Your code uses a function, class member, variable, or typedef that's marked deprecated.
/wd4702 #unreachable code
/wd4756 #overflow in constant arithmetic -- false positive in catch2
)

set(CLANG_WARNINGS
Expand All @@ -58,7 +59,7 @@ function(set_project_warnings project_name)
-Wpedantic # warn if non-standard C++ is used
-Wconversion # warn on type conversions that may lose data
-Wsign-conversion # warn on sign conversions
-Wnull-dereference # warn if a null dereference is detected
-Wno-null-dereference # warn if a null dereference is detected
-Wdouble-promotion # warn if float is implicit promoted to double
-Wformat=2 # warn on security issues around functions that format output
# (ie printf)
Expand Down

0 comments on commit 4d9b8ba

Please sign in to comment.