Merge pull request #7264 from deepikabhavnani/crc_warn

Suppress shift warning for IAR compiler as well
pull/7214/head
Cruz Monrreal 2018-06-20 07:57:30 -05:00 committed by GitHub
commit 585558c6f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
/** @}*/ /** @}*/