mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #7264 from deepikabhavnani/crc_warn
Suppress shift warning for IAR compiler as wellpull/7214/head
commit
585558c6f4
|
@ -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
|
||||
|
||||
/** @}*/
|
||||
|
|
Loading…
Reference in New Issue