From c95ffcc494513e9c2252fc140eaf756f1f18b672 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sat, 2 Mar 2024 23:18:34 -0500 Subject: [PATCH] [ci][kernel] only GCC use strict checking --- src/SConscript | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SConscript b/src/SConscript index 4d6f813bfe..11473f7c06 100644 --- a/src/SConscript +++ b/src/SConscript @@ -1,5 +1,4 @@ from building import * -from gcc import GetGCCLikePLATFORM import os src = Glob('*.c') @@ -31,7 +30,7 @@ else: LOCAL_CFLAGS = '' -if rtconfig.PLATFORM in GetGCCLikePLATFORM(): +if rtconfig.PLATFORM in ['gcc']: # only for GCC LOCAL_CFLAGS += ' -Wunused' # unused warning LOCAL_CFLAGS += ' -Wformat -Wformat-security' # printf/scanf format warning LOCAL_CFLAGS += ' -Warray-bounds -Wuninitialized' # memory access warning