From 3e83ce79c28c7a7581cd5390eed8fc15e262d15d Mon Sep 17 00:00:00 2001 From: liuwenxin Date: Mon, 13 Feb 2023 10:17:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=91=8A=E8=AD=A6=E6=B8=85=E7=90=86?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E4=B8=89=E6=96=B9=E5=BA=93=E5=B1=8F=E8=94=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【修改说明】此次开启Werror,解决告警产生的报错,以及屏蔽三方库告警 close #I6ELI9 Signed-off-by: liuwenxin --- testsuites/BUILD.gn | 3 +++ testsuites/sample/posix/mqueue/It_posix_queue.h | 1 + testsuites/unittest/posix/BUILD.gn | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/testsuites/BUILD.gn b/testsuites/BUILD.gn index 131d3d46..b3e34749 100644 --- a/testsuites/BUILD.gn +++ b/testsuites/BUILD.gn @@ -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) diff --git a/testsuites/sample/posix/mqueue/It_posix_queue.h b/testsuites/sample/posix/mqueue/It_posix_queue.h index 273c0224..3550788f 100644 --- a/testsuites/sample/posix/mqueue/It_posix_queue.h +++ b/testsuites/sample/posix/mqueue/It_posix_queue.h @@ -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); diff --git a/testsuites/unittest/posix/BUILD.gn b/testsuites/unittest/posix/BUILD.gn index e4919b63..29a9a1c0 100644 --- a/testsuites/unittest/posix/BUILD.gn +++ b/testsuites/unittest/posix/BUILD.gn @@ -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" ]