Skip to content

Commit

Permalink
Merge pull request #2386 from srcejon/fix_2384
Browse files Browse the repository at this point in the history
Fix gcc warnings about warning options
  • Loading branch information
f4exb authored Jan 25, 2025
2 parents d7863b2 + 23279d2 commit 89e392e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/Modules/CompilerOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ if(WIN32)
endif()

if(NOT MSVC)
add_compile_options(-Wall -Wextra -Wvla -Woverloaded-virtual -Wno-inconsistent-missing-override -ffast-math -fno-finite-math-only -ftree-vectorize)
add_compile_options(-Wall -Wextra -Wvla -ffast-math -fno-finite-math-only -ftree-vectorize)
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Woverloaded-virtual>)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_compile_options(-Wno-inconsistent-missing-override)
endif()
else()
# Disable some warnings, so more useful warnings aren't hidden in the noise
# 4996 'fopen': This function or variable may be unsafe. Consider using fopen_s instead.
Expand Down

0 comments on commit 89e392e

Please sign in to comment.