Skip to content

Commit

Permalink
Disable -Wdouble-promotion and change gnu99 -> c99
Browse files Browse the repository at this point in the history
CMakeLists didn't match the plain Makefile that's also included, so this
fixes that.
  • Loading branch information
vkoskiv committed Nov 23, 2023
1 parent 1e5a395 commit fca8f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if (MSVC)
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE)
else()
# set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Wconversion -std=gnu99")
set(CMAKE_C_FLAGS "-Wall -Wextra -Wno-missing-field-initializers -Wdouble-promotion -std=gnu99 -D_GNU_SOURCE")
set(CMAKE_C_FLAGS "-Wall -Wextra -Wno-missing-field-initializers -std=c99 -D_GNU_SOURCE")
set(CMAKE_C_FLAGS_RELEASE "-O2 -ftree-vectorize -g")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -g")
if (ASAN)
Expand Down

0 comments on commit fca8f1d

Please sign in to comment.