Skip to content

Commit 9c9586a

Browse files
author
Deepika
committed
moving static at the start to resolve warning:'static' is not at beginning of declaration [-Wold-style-declaration]
1 parent 818f82c commit 9c9586a

File tree

2 files changed

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

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ static void (*callFlashCommonBitOperation)(FTFx_REG32_ACCESS_TYPE base,
402402
* @endcode
403403
* Note2: The binary code is generated by IAR 7.70.1
404404
*/
405-
const static uint16_t s_flashRunCommandFunctionCode[] = {
405+
static const uint16_t s_flashRunCommandFunctionCode[] = {
406406
0x2180, /* MOVS R1, #128 ; 0x80 */
407407
0x7001, /* STRB R1, [R0] */
408408
/* @4: */
@@ -432,7 +432,7 @@ const static uint16_t s_flashRunCommandFunctionCode[] = {
432432
* @endcode
433433
* Note2: The binary code is generated by IAR 7.70.1
434434
*/
435-
const static uint16_t s_flashCommonBitOperationFunctionCode[] = {
435+
static const uint16_t s_flashCommonBitOperationFunctionCode[] = {
436436
0xb510, /* PUSH {R4, LR} */
437437
0x2900, /* CMP R1, #0 */
438438
0xd005, /* BEQ.N @12 */

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ static void (*callFlashCommonBitOperation)(FTFx_REG32_ACCESS_TYPE base,
402402
* @endcode
403403
* Note2: The binary code is generated by IAR 7.70.1
404404
*/
405-
const static uint16_t s_flashRunCommandFunctionCode[] = {
405+
static const uint16_t s_flashRunCommandFunctionCode[] = {
406406
0x2180, /* MOVS R1, #128 ; 0x80 */
407407
0x7001, /* STRB R1, [R0] */
408408
/* @4: */
@@ -432,7 +432,7 @@ const static uint16_t s_flashRunCommandFunctionCode[] = {
432432
* @endcode
433433
* Note2: The binary code is generated by IAR 7.70.1
434434
*/
435-
const static uint16_t s_flashCommonBitOperationFunctionCode[] = {
435+
static const uint16_t s_flashCommonBitOperationFunctionCode[] = {
436436
0xb510, /* PUSH {R4, LR} */
437437
0x2900, /* CMP R1, #0 */
438438
0xd005, /* BEQ.N @12 */

0 commit comments

Comments
 (0)