Skip to contentSkip to conversation

board: m5253demo, fix gcc-5.2.0 compilation warnings

PATCH New Angelo Dureghello 2 participants 2 messages Dec 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: m5253demo, fix gcc-5.2.0 compilation warnings

Fix gcc-5.2.0 buildman warnings:
warning: 'w' is static but declared in inline function 'spin_wheel' which is not static
warning: 'p' is static but declared in inline function 'spin_wheel' which is not static

---

 board/freescale/m5253demo/flash.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/freescale/m5253demo/flash.c +2 -2
index 071701d..099deca 100644
@@ -31,7 +31,7 @@ typedef volatile unsigned short FLASH_PORT_WIDTHV;
 ulong flash_get_size(FPWV * addr, flash_info_t * info);
 int flash_get_offsets(ulong base, flash_info_t * info);
 int write_word(flash_info_t * info, FPWV * dest, u16 data);
-void inline spin_wheel(void);
+static inline void spin_wheel(void);
 
 flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
@@ -439,7 +439,7 @@ int write_word(flash_info_t * info, FPWV * dest, u16 data)
 	return (res);
 }
 
-void inline spin_wheel(void)
+static inline void spin_wheel(void)
 {
 	static int p = 0;
 	static char w[] = "\\/-";
Signature · 1 line
2.5.3
#1 lore raw

PATCH 1/1 board: m5253demo, fix gcc-5.2.0 compilation warnings

Quoted 8 lines · Angelo Dureghello

Fix gcc-5.2.0 buildman warnings:
warning: 'w' is static but declared in inline function 'spin_wheel' which is not static
warning: 'p' is static but declared in inline function 'spin_wheel' which is not static

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151220/fc954402/attachment.sig>