mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-21 01:07:18 +08:00
[ci][kernel] only GCC use strict checking
This commit is contained in:
parent
cb154ae30a
commit
c95ffcc494
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user