From d9ec4344fcd7f924f6aee56f2cf7084df7e02cb4 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 27 Apr 2016 23:32:14 +0200 Subject: [PATCH] use std=c99 --- CMakeLists.txt | 4 +++- Makefile | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1baf398769..165d7aeb01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,8 @@ include_directories(ed25519-donna) set_source_files_properties(aeskey.c PROPERTIES COMPILE_FLAGS -Wno-sequence-point) +set(CMAKE_C_FLAGS "-std=c99") + if(MSVC) set_source_files_properties(${SOURCES} PROPERTIES LANGUAGE CXX) endif(MSVC) @@ -22,4 +24,4 @@ if (TREZOR_CRYPTO_TESTS) add_executable(test-openssl test-openssl.c) target_link_libraries(test-openssl TrezorCrypto check rt pthread m crypto) add_test(NAME trezor-crypto-openssl COMMAND test-openssl 100) -endif() \ No newline at end of file +endif() diff --git a/Makefile b/Makefile index 981f17b778..bdb9b09b20 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ CC = gcc OPTFLAGS = -O3 -g CFLAGS += $(OPTFLAGS) \ + -std=c99 \ -W \ -Wall \ -Wextra \