Skip to content

Commit

Permalink
Allow other compilers to set Wconversion
Browse files Browse the repository at this point in the history
  • Loading branch information
torben-hansen committed Nov 8, 2024
1 parent 2ba1365 commit 547cfcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/jitterentropy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if(WIN32)
else()
set(CMAKE_POSITION_INDEPENDENT_CODE true)
set(JITTER_COMPILE_FLAGS "-DAWSLC -fwrapv --param ssp-buffer-size=4 -fvisibility=hidden -Wcast-align -Wmissing-field-initializers -Wshadow -Wswitch-enum -Wextra -Wall -pedantic -O0 -fwrapv")
if (GCC AND CMAKE_C_COMPILER_VERSION VERSION_GREATER "4.3")
if ((NOT GCC) OR (GCC AND CMAKE_C_COMPILER_VERSION VERSION_GREATER "4.3"))
# -Wconversion was changed from GCC version 4.3. Prior it was meant as
# an aid in translating code from old C to modern C. It was not meant
# to help detect troublesome implicit conversions.
Expand Down

0 comments on commit 547cfcd

Please sign in to comment.