From 59f76c111243848dc61ad925a47654f22825c9bc Mon Sep 17 00:00:00 2001 From: Gaurav Aggarwal Date: Mon, 27 Feb 2023 09:50:52 +0000 Subject: [PATCH 1/2] Remove C99 requirement from CMake file The kernel source is C89 compliant and does not need C99. Signed-off-by: Gaurav Aggarwal --- CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3224a97653b..ece91554717 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -222,11 +222,6 @@ elseif((FREERTOS_PORT STREQUAL "A_CUSTOM_PORT") AND (NOT TARGET freertos_kernel_ " freertos_kernel)") endif() -######################################################################## -# Requirements -set(CMAKE_C_STANDARD 99) -set(CMAKE_C_STANDARD_REQUIRED ON) - ######################################################################## # Overall Compile Options # Note the compile option strategy is to error on everything and then From 276f2d1b8783dee4192d578f4d178e87c5ce7f68 Mon Sep 17 00:00:00 2001 From: Gaurav Aggarwal Date: Wed, 1 Mar 2023 13:01:12 +0000 Subject: [PATCH 2/2] Explicitly set C89 requirement for kernel Signed-off-by: Gaurav Aggarwal --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ebffe7bd01..b51b7aaacdd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -228,6 +228,10 @@ elseif((FREERTOS_PORT STREQUAL "A_CUSTOM_PORT") AND (NOT TARGET freertos_kernel_ " freertos_kernel)") endif() +######################################################################## +# Requirements +set_property(TARGET freertos_kernel PROPERTY C_STANDARD 90) + ######################################################################## # Overall Compile Options # Note the compile option strategy is to error on everything and then