Sfoglia il codice sorgente

CoreValidation: Fixed compiler warnings on ArmClang.

Change-Id: Iccb28f2fe2f4c36b89729f5668104d1cab7af594
Jonatan Antoni 7 anni fa
parent
commit
8489b9224b

+ 1 - 1
CMSIS/CoreValidation/Source/CV_CoreSimd.c

@@ -660,7 +660,7 @@ void TC_CoreSimd_MulAcc32 (void) {
   op1_s32 = 0x00000200;
   op2_s32 = 0x00000004;
   op3_s32 = 0x00000100;
-  res_s32 = __SMMLA((int64_t)op1_s32, (int64_t)op2_s32, op3_s32);
+  res_s32 = __SMMLA(op1_s32, op2_s32, op3_s32);
   ASSERT_TRUE(res_s32 == 0x00000100);
 
   op1_s32 = 0x40000000;

+ 1 - 1
CMSIS/CoreValidation/Tests/armclang.rtebuild

@@ -5,7 +5,7 @@ import:
 targets:
   arm:
     csettings   : [ -fno-rtti, -funsigned-char, -fshort-enums, -fshort-wchar, -mlittle-endian, -gdwarf-3, "-%{optimize}", -ffunction-sections ]
-    cwarnings   : [ -Weverything, -Wno-undef, -Wno-packed, -Wno-reserved-id-macro, -Wno-unused-macros, -Wno-documentation-unknown-command, -Wno-documentation, -Wno-license-management, -Wno-parentheses-equality ]
+    cwarnings   : [ -Weverything, -Wno-covered-switch-default, -Wno-packed, -Wno-reserved-id-macro, -Wno-unused-macros, -Wno-documentation-unknown-command, -Wno-documentation, -Wno-license-management ]
   armcm:
     features    : ""
     cflags      : [ -xc, -std=gnu99, --target=arm-arm-none-eabi, "-mcpu=${mcpu}${features}", "-mfpu=${mfpu}", "-mfloat-abi=${float}", -c, "${csettings}", "${cwarnings}" ]