From 927ad2d8e5f508946ceaecf6ef8502d1cad41e39 Mon Sep 17 00:00:00 2001 From: Paul Helter Date: Wed, 12 Oct 2022 03:00:24 -0700 Subject: [PATCH] Removing compiler warnings for GNU and Clang. (#571) --- CMakeLists.txt | 16 ---------------- portable/CMakeLists.txt | 16 ---------------- 2 files changed, 32 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b26bfab03b7..13c48325cba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -244,22 +244,6 @@ target_include_directories(freertos_kernel include ) -target_compile_options( freertos_kernel - PRIVATE - $<$:-Wno-cast-align> - $<$:-Wno-covered-switch-default> - $<$:-Wno-documentation> - $<$:-Wno-extra-semi-stmt> - $<$:-Wno-int-to-pointer-cast> - $<$:-Wno-missing-noreturn> - $<$:-Wno-missing-variable-declarations> - $<$:-Wno-padded> - $<$:-Wno-pointer-to-int-cast> - $<$:-Wno-shorten-64-to-32> - $<$:-Wno-sign-conversion> - $<$:-Wno-unused-macros> -) - target_link_libraries(freertos_kernel PUBLIC freertos_config diff --git a/portable/CMakeLists.txt b/portable/CMakeLists.txt index 41015d1a95e..ae9de9cfe1b 100644 --- a/portable/CMakeLists.txt +++ b/portable/CMakeLists.txt @@ -1004,19 +1004,3 @@ target_link_libraries(freertos_kernel_port "$<$:hardware_clocks;hardware_exception>" $<$:winmm> # Windows library which implements timers ) - -# Note these are primarily for the POSIX port. -target_compile_options( freertos_kernel_port - PRIVATE - $<$:-Wno-disabled-macro-expansion> - $<$:-Wno-documentation> - $<$:-Wno-extra-semi-stmt> - $<$:-Wno-missing-noreturn> - $<$:-Wno-missing-variable-declarations> - $<$:-Wno-padded> - $<$:-Wno-pointer-to-int-cast> - $<$:-Wno-reserved-macro-identifier> - $<$:-Wno-sign-conversion> - $<$:-Wno-type-limits> - $<$:-Wno-unused-macros> -)