From 7a12fb3e6b51152141737094c3918b5a65181665 Mon Sep 17 00:00:00 2001 From: toddouska Date: Mon, 20 Aug 2012 16:58:11 -0700 Subject: [PATCH] IAR inlining and enum warning off --- cyassl/ctaocrypt/settings.h | 4 ++++ cyassl/ctaocrypt/types.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/cyassl/ctaocrypt/settings.h b/cyassl/ctaocrypt/settings.h index 7b92f6224..8fcb58b67 100644 --- a/cyassl/ctaocrypt/settings.h +++ b/cyassl/ctaocrypt/settings.h @@ -164,6 +164,10 @@ #endif #define CYASSL_LWIP #define CYASSL_SAFERTOS + #if defined(__IAR_SYSTEMS_ICC__) + /* enum uses enum */ + #pragma diag_suppress=Pa089 + #endif #endif #ifdef CYASSL_SAFERTOS diff --git a/cyassl/ctaocrypt/types.h b/cyassl/ctaocrypt/types.h index 0c9bff635..0704b0b5c 100644 --- a/cyassl/ctaocrypt/types.h +++ b/cyassl/ctaocrypt/types.h @@ -108,6 +108,8 @@ enum { #define INLINE inline #elif defined(THREADX) #define INLINE _Inline + #elif defined(__IAR_SYSTEMS_ICC__) + #define INLINE inline #else #define INLINE #endif