fix:告警清理包含三方库屏蔽

【修改说明】此次开启Werror,解决告警产生的报错,以及屏蔽三方库告警

 close #I6ELI9
Signed-off-by: liuwenxin <liuwenxin11@huawei.com>
This commit is contained in:
liuwenxin 2023-02-13 10:17:48 +08:00
parent 24f52e0259
commit 3e83ce79c2
3 changed files with 5 additions and 1 deletions

View File

@ -27,6 +27,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//kernel/liteos_m/config.gni")
import("//kernel/liteos_m/liteos.gni")
config("include") {
@ -36,6 +37,8 @@ config("include") {
if (defined(LOSCFG_KERNEL_TEST_FULL)) {
defines += [ "LOS_KERNEL_TEST_FULL=1" ]
}
cflags = warn_config_cflags
asmflags = warn_config_asmflags
}
module_switch = defined(LOSCFG_TEST)

View File

@ -105,6 +105,7 @@ extern VOID ItSuitePosixMqueue(VOID);
extern UINT32 PosixPthreadInit(pthread_attr_t *attr, int pri);
extern UINT32 PosixPthreadDestroy(pthread_attr_t *attr, pthread_t thread);
extern VOID TestAssertWaitDelay(UINT32 *testCount, UINT32 flag);
extern void TestExtraTaskDelay(UINT32 tick);
VOID ItPosixQueue001(VOID);
VOID ItPosixQueue002(VOID);

View File

@ -71,8 +71,8 @@ static_library("posix_test") {
if (!defined(LOSCFG_COMPILER_ICCARM)) {
cflags = [
"-Wno-error",
"-Wno-unused-function",
"-Wno-int-conversion",
]
} else {
cflags = [ "--no_warnings" ]