Skip to content

Commit 5a1dd35

Browse files
committed
Adding in compile warnings for linux builds that kernel is okay with using.
1 parent 8abfdee commit 5a1dd35

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

portable/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,12 @@ if(FREERTOS_PORT STREQUAL GCC_POSIX)
994994
find_package(Threads REQUIRED)
995995
endif()
996996

997+
target_compile_options(freertos_kernel_port
998+
PRIVATE
999+
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-padded>
1000+
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-disabled-macro-expansion>
1001+
)
1002+
9971003
target_link_libraries(freertos_kernel_port
9981004
PUBLIC
9991005
$<$<STREQUAL:${FREERTOS_PORT},GCC_RP2040>:pico_base_headers>

portable/ThirdParty/GCC/Posix/utils/wait_for_event.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
*
2727
*/
2828

29-
#ifndef _WAIT_FOR_EVENT_H_
30-
#define _WAIT_FOR_EVENT_H_
29+
#ifndef WAIT_FOR_EVENT_H_
30+
#define WAIT_FOR_EVENT_H_
3131

3232
#include <stdbool.h>
3333
#include <time.h>
@@ -43,4 +43,4 @@ void event_signal( struct event * ev );
4343

4444

4545

46-
#endif /* ifndef _WAIT_FOR_EVENT_H_ */
46+
#endif /* ifndef WAIT_FOR_EVENT_H_ */

0 commit comments

Comments
 (0)