Skip to content

Commit

Permalink
Add language limit to the compile flag '-Wno-register' in the Telink …
Browse files Browse the repository at this point in the history
…config (project-chip#28043)

the option '-Wno-register' is valid for C++/ObjC++ but not for C

Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
2 people authored and erwinpan1 committed Jul 21, 2023
1 parent 02a6ad0 commit 1f6ab1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/telink/app/enable-gnu-std.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
#

add_library(gnu17 INTERFACE)
target_compile_options(gnu17 INTERFACE $<$<COMPILE_LANGUAGE:CXX>:-std=gnu++17> -Wno-register -D_DEFAULT_SOURCE)
target_compile_options(gnu17 INTERFACE $<$<COMPILE_LANGUAGE:CXX>:-std=gnu++17> $<$<COMPILE_LANGUAGE:CXX>:-Wno-register> -D_DEFAULT_SOURCE)
target_link_libraries(app PRIVATE gnu17)

0 comments on commit 1f6ab1f

Please sign in to comment.