소스 검색

[ci][kernel] only GCC use strict checking

Meco Man 2 년 전
부모
커밋
c95ffcc494
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/SConscript

+ 1 - 2
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