Skip to content

Commit 0a54f5b

Browse files
committed
Compiler warning statement fixed
1 parent 1889c75 commit 0a54f5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Source/portable/GCC/ARM_CM0

Source/portable/GCC/ARM_CM0/port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ uint32_t ulSetInterruptMaskFromISR( void )
252252
::: "memory"
253253
);
254254

255-
#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
255+
#if !(defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
256256
/* To avoid compiler warnings. The return statement will nevere be reached,
257257
but some compilers warn if it is not included, while others won't compile if
258258
it is. */
@@ -269,7 +269,7 @@ void vClearInterruptMaskFromISR( __attribute__( ( unused ) ) uint32_t ulMask )
269269
::: "memory"
270270
);
271271

272-
#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
272+
#if !(defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
273273
/* Just to avoid compiler warning. ulMask is used from the asm code but
274274
the compiler can't see that. Some compilers generate warnings without the
275275
following line, while others generate warnings if the line is included. */

0 commit comments

Comments
 (0)