From e19f6ac4ddf42256e29d1e3cbf921dbbe24204ac Mon Sep 17 00:00:00 2001 From: deepikabhavnani Date: Tue, 19 Jun 2018 11:36:42 -0500 Subject: [PATCH] Suppress warning for IAR compiler as well --- drivers/MbedCRC.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/MbedCRC.h b/drivers/MbedCRC.h index ef3d941b05..3c37fba85b 100644 --- a/drivers/MbedCRC.h +++ b/drivers/MbedCRC.h @@ -32,6 +32,8 @@ but we check for ( width < 8) before performing shift, so it should not be an is #elif defined ( __GNUC__ ) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wshift-count-negative" +#elif defined (__ICCARM__) +#pragma diag_suppress=Pe062 // Shift count is negative #endif namespace mbed { @@ -457,6 +459,7 @@ private: #if defined ( __CC_ARM ) #elif defined ( __GNUC__ ) #pragma GCC diagnostic pop +#elif defined (__ICCARM__) #endif /** @}*/