From 05c183eb556ad6f8cbd3b0f4007602b13d494cf5 Mon Sep 17 00:00:00 2001 From: Laukik Hase Date: Fri, 15 Jul 2022 17:42:05 +0530 Subject: [PATCH] cmake: Removed CMake flags for controlling C standard - `CMAKE_C_EXTENSIONS`: Enable/disable compiler-specific extensions - `CMAKE_C_STANDARD`: Set C standard (C99, C11) - These variables (as set in mbedtls) set the C standard to C99 for ESP-IDF as well, resulting in build errors related to `asm volatile` (cherry picked from commit e39975969d548572a39875ad29abd88b23285f94) --- CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f0615027a7..ca14a96962 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -196,8 +196,6 @@ endfunction(get_name_without_last_ext) include(CheckCCompilerFlag) -set(CMAKE_C_EXTENSIONS OFF) -set(CMAKE_C_STANDARD 99) if(CMAKE_COMPILER_IS_GNU) # some warnings we want are not available with old GCC versions