diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-11-28 11:35:08 +0100 |
---|---|---|
committer | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-12-20 17:56:34 +0100 |
commit | 33bb95bab24d2dca03ee9e641d0e98d9fbd86fdd (patch) | |
tree | eca73c12131b0765e3dfb9fe33a4df2397e932bd /board-js2x/rtas/rtas_flash.c | |
parent | ec10f8af354266ba2576cfcc7d0c443a0cdbd7e9 (diff) | |
download | SLOF-33bb95bab24d2dca03ee9e641d0e98d9fbd86fdd.zip SLOF-33bb95bab24d2dca03ee9e641d0e98d9fbd86fdd.tar.gz SLOF-33bb95bab24d2dca03ee9e641d0e98d9fbd86fdd.tar.bz2 |
Silenced some compiler warnings that occur when compiling with prototype checks
The compiler flags -Wmissing-prototypes and -Wstrict-prototypes generally help
to write code with proper prototypes. This way one can avoid some ugly bugs
because it helps to identify functions that do not have prototypes in headers.
It also helps to improve performance since local functions then have to be
declared "static", so the compiler can do better optimizations.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Diffstat (limited to 'board-js2x/rtas/rtas_flash.c')
-rw-r--r-- | board-js2x/rtas/rtas_flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board-js2x/rtas/rtas_flash.c b/board-js2x/rtas/rtas_flash.c index 7d93343..189878d 100644 --- a/board-js2x/rtas/rtas_flash.c +++ b/board-js2x/rtas/rtas_flash.c @@ -216,7 +216,7 @@ write_flash(unsigned long offset, unsigned char *data) clr_ci(); } -void +static void write_flash_page(unsigned long offset, unsigned short *data) { int i = 0; |