Skip to content

Commit e19f6ac

Browse files
author
deepikabhavnani
committed
Suppress warning for IAR compiler as well
1 parent ba5b5a3 commit e19f6ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/MbedCRC.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ but we check for ( width < 8) before performing shift, so it should not be an is
3232
#elif defined ( __GNUC__ )
3333
#pragma GCC diagnostic push
3434
#pragma GCC diagnostic ignored "-Wshift-count-negative"
35+
#elif defined (__ICCARM__)
36+
#pragma diag_suppress=Pe062 // Shift count is negative
3537
#endif
3638

3739
namespace mbed {
@@ -457,6 +459,7 @@ class MbedCRC
457459
#if defined ( __CC_ARM )
458460
#elif defined ( __GNUC__ )
459461
#pragma GCC diagnostic pop
462+
#elif defined (__ICCARM__)
460463
#endif
461464

462465
/** @}*/

0 commit comments

Comments
 (0)