@@ -106,8 +106,6 @@ typedef int_fast32_t int_fast24_t;
106
106
#define NS_NORETURN _Noreturn
107
107
#elif defined __GNUC__
108
108
#define NS_NORETURN __attribute__ ((__noreturn__))
109
- #elif defined __CC_ARM
110
- #define NS_NORETURN __declspec (noreturn)
111
109
#elif defined __IAR_SYSTEMS_ICC__
112
110
#define NS_NORETURN __noreturn
113
111
#else
@@ -117,7 +115,7 @@ typedef int_fast32_t int_fast24_t;
117
115
118
116
/* C11's "alignas" macro, emulated for integer expressions if necessary */
119
117
#ifndef __alignas_is_defined
120
- #if defined __CC_ARM || defined __TASKING__
118
+ #if defined __TASKING__
121
119
#define alignas (n ) __align(n)
122
120
#define __alignas_is_defined 1
123
121
#elif (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L) || (defined __cplusplus && __cplusplus >= 201103L)
@@ -149,7 +147,7 @@ typedef int_fast32_t int_fast24_t;
149
147
* static int foo(void) MAYBE_UNUSED;
150
148
* ~~~
151
149
*/
152
- #if defined __CC_ARM || defined __GNUC__
150
+ #if defined __GNUC__
153
151
#define MAYBE_UNUSED __attribute__ ((unused))
154
152
#else
155
153
#define MAYBE_UNUSED
@@ -219,7 +217,7 @@ typedef int_fast32_t int_fast24_t;
219
217
#else /* C */
220
218
# if __STDC_VERSION__ >= 201112L
221
219
# define NS_STATIC_ASSERT (test, str ) _Static_assert(test, str);
222
- # elif defined __GNUC__ && NS_GCC_VERSION >= 40600 && !defined __CC_ARM
220
+ # elif defined __GNUC__ && NS_GCC_VERSION >= 40600
223
221
# ifdef _Static_assert
224
222
/*
225
223
* Some versions of glibc cdefs.h (which comes in via <stdint.h> above)
@@ -255,7 +253,7 @@ typedef int_fast32_t int_fast24_t;
255
253
256
254
/* * \brief Pragma to suppress warnings about always true/false comparisons
257
255
*/
258
- #if defined __GNUC__ && NS_GCC_VERSION >= 40600 && !defined __CC_ARM
256
+ #if defined __GNUC__ && NS_GCC_VERSION >= 40600
259
257
#define NS_FUNNY_COMPARE_OK _Pragma (" GCC diagnostic push" ) \
260
258
_Pragma(" GCC diagnostic ignored \" -Wtype-limits\" " )
261
259
#define NS_FUNNY_COMPARE_RESTORE _Pragma (" GCC diagnostic pop" )
@@ -272,11 +270,7 @@ typedef int_fast32_t int_fast24_t;
272
270
* components should ensure this is not included by only using it in
273
271
* a ifdef blocks providing dummy definitions.
274
272
*/
275
- #ifdef __CC_ARM
276
- // statement is unreachable(111), controlling expression is constant(236), expression has no effect(174),
277
- // function was declared but never referenced(177), variable was set but never used(550)
278
- #define NS_DUMMY_DEFINITIONS_OK _Pragma (" diag_suppress=111,236,174,177,550" )
279
- #elif defined __IAR_SYSTEMS_ICC__
273
+ #if defined __IAR_SYSTEMS_ICC__
280
274
// controlling expression is constant
281
275
#define NS_DUMMY_DEFINITIONS_OK _Pragma (" diag_suppress=Pe236" )
282
276
#else
0 commit comments