From 1f6ab1f750ec169e29e88cf99b61e77d2fb22eb4 Mon Sep 17 00:00:00 2001 From: Charles <45001709+Semi-Bin-Blain@users.noreply.github.com> Date: Thu, 20 Jul 2023 15:13:38 +0800 Subject: [PATCH] Add language limit to the compile flag '-Wno-register' in the Telink config (#28043) the option '-Wno-register' is valid for C++/ObjC++ but not for C Co-authored-by: Andrei Litvin --- config/telink/app/enable-gnu-std.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/telink/app/enable-gnu-std.cmake b/config/telink/app/enable-gnu-std.cmake index a8a63cf63c95f0..b165900d31866a 100644 --- a/config/telink/app/enable-gnu-std.cmake +++ b/config/telink/app/enable-gnu-std.cmake @@ -15,5 +15,5 @@ # add_library(gnu17 INTERFACE) -target_compile_options(gnu17 INTERFACE $<$:-std=gnu++17> -Wno-register -D_DEFAULT_SOURCE) +target_compile_options(gnu17 INTERFACE $<$:-std=gnu++17> $<$:-Wno-register> -D_DEFAULT_SOURCE) target_link_libraries(app PRIVATE gnu17)