aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author浅倉麗子2020-05-05 11:47:37 -0400
committer浅倉麗子2020-05-05 11:47:37 -0400
commit6207851846d54a45690112a79e7108e9ea9dd054 (patch)
tree3503bc91002eaa653f9d9318cbda62a2da02aae6
parentAdd "Enable Full HD" feature (diff)
downloadsharpscale-6207851846d54a45690112a79e7108e9ea9dd054.tar.gz
Prevent double promotion
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4d6f428..3c2456d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,7 +12,7 @@ include("$ENV{DOLCESDK}/share/dolce.cmake" REQUIRED)
project(sharpscale LANGUAGES C)
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -O3 -std=c99")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -O3 -std=c99 -Wdouble-promotion -fsingle-precision-constant")
if(LOG_PRINTF)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DLOG_PRINTF")