From 9c9586a3885899cacc6f4f51649a6c8d9067c69b Mon Sep 17 00:00:00 2001 From: Deepika Date: Thu, 15 Jun 2017 11:56:41 -0500 Subject: [PATCH] moving static at the start to resolve warning:'static' is not at beginning of declaration [-Wold-style-declaration] --- .../TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_flash.c | 4 ++-- .../TARGET_MCU_K64F/drivers/fsl_flash.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_flash.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_flash.c index b844547e60..fff64ed74a 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_flash.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_flash.c @@ -402,7 +402,7 @@ static void (*callFlashCommonBitOperation)(FTFx_REG32_ACCESS_TYPE base, * @endcode * Note2: The binary code is generated by IAR 7.70.1 */ -const static uint16_t s_flashRunCommandFunctionCode[] = { +static const uint16_t s_flashRunCommandFunctionCode[] = { 0x2180, /* MOVS R1, #128 ; 0x80 */ 0x7001, /* STRB R1, [R0] */ /* @4: */ @@ -432,7 +432,7 @@ const static uint16_t s_flashRunCommandFunctionCode[] = { * @endcode * Note2: The binary code is generated by IAR 7.70.1 */ -const static uint16_t s_flashCommonBitOperationFunctionCode[] = { +static const uint16_t s_flashCommonBitOperationFunctionCode[] = { 0xb510, /* PUSH {R4, LR} */ 0x2900, /* CMP R1, #0 */ 0xd005, /* BEQ.N @12 */ diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/drivers/fsl_flash.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/drivers/fsl_flash.c index b844547e60..fff64ed74a 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/drivers/fsl_flash.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/drivers/fsl_flash.c @@ -402,7 +402,7 @@ static void (*callFlashCommonBitOperation)(FTFx_REG32_ACCESS_TYPE base, * @endcode * Note2: The binary code is generated by IAR 7.70.1 */ -const static uint16_t s_flashRunCommandFunctionCode[] = { +static const uint16_t s_flashRunCommandFunctionCode[] = { 0x2180, /* MOVS R1, #128 ; 0x80 */ 0x7001, /* STRB R1, [R0] */ /* @4: */ @@ -432,7 +432,7 @@ const static uint16_t s_flashRunCommandFunctionCode[] = { * @endcode * Note2: The binary code is generated by IAR 7.70.1 */ -const static uint16_t s_flashCommonBitOperationFunctionCode[] = { +static const uint16_t s_flashCommonBitOperationFunctionCode[] = { 0xb510, /* PUSH {R4, LR} */ 0x2900, /* CMP R1, #0 */ 0xd005, /* BEQ.N @12 */