Skip to content

Commit

Permalink
Use C99 with GNU extensions
Browse files Browse the repository at this point in the history
I'm not actually using any gnu11 features, so might as well use the
older standard to be more compatible.
  • Loading branch information
cgmb committed Feb 5, 2020
1 parent 838ffac commit 91414d4
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
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.8.11)
project(euler)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 -ffast-math")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -ffast-math")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=return-type")

Expand Down

0 comments on commit 91414d4

Please sign in to comment.