]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/IAR/ARM_CM33/non_secure/portmacro.h
Move warning suppression for IAR compiler to portmacro.h for v8M ports
[freertos] / FreeRTOS / Source / portable / IAR / ARM_CM33 / non_secure / portmacro.h
index c09b3ce6f0ad1e47647c3449f54a5250c60041ba..9ccdfc2a7c3f669bacfad760fcfdbaf87b236a53 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