Skip to content

Commit cc6de51

Browse files
author
Deepika
committed
Resolving warning: #2524-D: #pragma pop with no matching #pragma push : Pragma push for CC_ARM option is inside GNUC define, same hierarchy to be followed while pop
1 parent 9c9586a commit cc6de51

File tree

2 files changed

+6
-4
lines changed
  • targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS

2 files changed

+6
-4
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_flash.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,11 +2734,12 @@ void flash_cache_clear(flash_config_t *config)
27342734
__DSB();
27352735
#endif /* FLASH_DRIVER_IS_FLASH_RESIDENT */
27362736
}
2737+
#if (defined(__GNUC__))
2738+
/* #pragma GCC pop_options */
2739+
#else
27372740
#if (defined(__CC_ARM))
27382741
#pragma pop
27392742
#endif
2740-
#if (defined(__GNUC__))
2741-
/* #pragma GCC pop_options */
27422743
#endif
27432744

27442745
#if FLASH_DRIVER_IS_FLASH_RESIDENT

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/drivers/fsl_flash.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,11 +2734,12 @@ void flash_cache_clear(flash_config_t *config)
27342734
__DSB();
27352735
#endif /* FLASH_DRIVER_IS_FLASH_RESIDENT */
27362736
}
2737+
#if (defined(__GNUC__))
2738+
/* #pragma GCC pop_options */
2739+
#else
27372740
#if (defined(__CC_ARM))
27382741
#pragma pop
27392742
#endif
2740-
#if (defined(__GNUC__))
2741-
/* #pragma GCC pop_options */
27422743
#endif
27432744

27442745
#if FLASH_DRIVER_IS_FLASH_RESIDENT

0 commit comments

Comments
 (0)