]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/IAR/ARM_CM23/non_secure/portmacro.h
Move warning suppression for IAR compiler to portmacro.h for v8M ports
[freertos] / FreeRTOS / Source / portable / IAR / ARM_CM23 / non_secure / portmacro.h
index 969c56329f3e29020f396d199a05d690778d1bab..38a5c7255474bca075d19f4000708e3633e9e4ce 100644 (file)
@@ -292,6 +292,13 @@ typedef struct MPU_SETTINGS
 #define portMEMORY_BARRIER() __asm volatile( "" ::: "memory" )\r
 /*-----------------------------------------------------------*/\r
 \r
+/* Suppress warnings that are generated by the IAR tools, but cannot be fixed in\r
+ * the source code because to do so would cause other compilers to generate\r
+ * warnings. */\r
+#pragma diag_suppress=Be006\r
+#pragma diag_suppress=Pa082\r
+/*-----------------------------------------------------------*/\r
+\r
 #ifdef __cplusplus\r
 }\r
 #endif\r