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 (#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 pull[bot] committed Aug 21, 2023
1 parent ada916d commit e7ab1c7
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 e7ab1c7

Please sign in to comment.