Suppress warning for IAR compiler as well

pull/7264/head
deepikabhavnani 2018-06-19 11:36:42 -05:00
parent ba5b5a3870
commit e19f6ac4dd
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,8 @@ but we check for ( width < 8) before performing shift, so it should not be an is
#elif defined ( __GNUC__ ) #elif defined ( __GNUC__ )
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshift-count-negative" #pragma GCC diagnostic ignored "-Wshift-count-negative"
#elif defined (__ICCARM__)
#pragma diag_suppress=Pe062 // Shift count is negative
#endif #endif
namespace mbed { namespace mbed {
@ -457,6 +459,7 @@ private:
#if defined ( __CC_ARM ) #if defined ( __CC_ARM )
#elif defined ( __GNUC__ ) #elif defined ( __GNUC__ )
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#elif defined (__ICCARM__)
#endif #endif
/** @}*/ /** @}*/