From fca8f1dc311a638a77d1778de7b9af2998ac4793 Mon Sep 17 00:00:00 2001 From: Valtteri Koskivuori Date: Fri, 24 Nov 2023 00:07:50 +0200 Subject: [PATCH] Disable -Wdouble-promotion and change gnu99 -> c99 CMakeLists didn't match the plain Makefile that's also included, so this fixes that. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10496cfa..8b8eea0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)