Skip to content

Commit

Permalink
lib: mbedtls: set compiler flag to c99
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
  • Loading branch information
edsiper committed Jul 1, 2021
1 parent 09936ff commit 305590f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mbedtls-2.26.0/CMakeLists.txt
Expand Up @@ -173,6 +173,8 @@ string(REGEX MATCH "Clang" CMAKE_COMPILER_IS_CLANG "${CMAKE_C_COMPILER_ID}")

include(CheckCCompilerFlag)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")

if(CMAKE_COMPILER_IS_GNU)
# some warnings we want are not available with old GCC versions
# note: starting with CMake 2.8 we could use CMAKE_C_COMPILER_VERSION
Expand Down

0 comments on commit 305590f

Please sign in to comment.