From e6514fb1edacbf2535aa8e5d16b7ae06a18f57e3 Mon Sep 17 00:00:00 2001 From: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> Date: Thu, 2 Mar 2023 14:47:29 +0530 Subject: [PATCH] Remove C99 requirement from CMake file (#633) * Remove C99 requirement from CMake file The kernel source is C89 compliant and does not need C99. Signed-off-by: Gaurav Aggarwal * Explicitly set C89 requirement for kernel Signed-off-by: Gaurav Aggarwal --------- Signed-off-by: Gaurav Aggarwal --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aead9a0d841..b51b7aaacdd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,8 +230,7 @@ endif() ######################################################################## # Requirements -set(CMAKE_C_STANDARD 99) -set(CMAKE_C_STANDARD_REQUIRED ON) +set_property(TARGET freertos_kernel PROPERTY C_STANDARD 90) ######################################################################## # Overall Compile Options