Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRTOS/FreeRTOS-Kernel.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>2023-07-19 12:29:08 +0300
committerGitHub <noreply@github.com>2023-07-19 12:29:08 +0300
commit0d03a938cc5b3a3a0fc8c05e943a6552f21b56af (patch)
treebc42aa0ce4f61dcd4af81245bcc7ac68d129d8f1 /CMakeLists.txt
parent71662b5b5abf4c83974de20c9f6d38636ac930b5 (diff)
Fic clang compiler warnings (#711)
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c57d46402..6faa93167 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -262,7 +262,12 @@ target_compile_options(freertos_kernel PRIVATE
$<$<COMPILE_LANG_AND_ID:C,Clang,GNU>:-Werror>
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Weverything>
- # TODO: Add in other Compilers here.
+ # Suppressions required to build clean with clang.
+ $<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-unused-macros>
+ $<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-padded>
+ $<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-missing-variable-declarations>
+ $<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-covered-switch-default>
+ $<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-cast-align>
)