Skip to content

Commit 585558c

Browse files
author
Cruz Monrreal
authored
Merge pull request #7264 from deepikabhavnani/crc_warn
Suppress shift warning for IAR compiler as well
2 parents cc1e4f0 + e19f6ac commit 585558c

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)