[rtems commit] arm/gba/console/conio.c: Fix warning

Joel Sherrill joel at rtems.org
Tue Oct 21 14:36:31 UTC 2014


Module:    rtems
Branch:    master
Commit:    5bdda7f07cd6c4f9c2efa03978a0a40f6b1868de
Changeset: http://git.rtems.org/rtems/commit/?id=5bdda7f07cd6c4f9c2efa03978a0a40f6b1868de

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Mon Oct 20 09:12:46 2014 -0500

arm/gba/console/conio.c: Fix warning

---

 c/src/lib/libbsp/arm/gba/console/conio.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libbsp/arm/gba/console/conio.c b/c/src/lib/libbsp/arm/gba/console/conio.c
index 1027b2a..c53793a 100644
--- a/c/src/lib/libbsp/arm/gba/console/conio.c
+++ b/c/src/lib/libbsp/arm/gba/console/conio.c
@@ -87,6 +87,10 @@ int  _wherex;                /**< Screen X coordinate */
 int  _wherey;                /**< Screen Y coordinate */
 int  _textattr;              /**< Text attribute      */
 
+/*
+ * Forward reference
+ */
+static void gba_initconio(void);
 
 /*---------------------------------------------------------------------------*
  *  Defaultfont                                                              *
@@ -318,7 +322,7 @@ int gba_printf(const char *_format, ...)
  *  @param  None
  *  @return None
  */
-void gba_initconio(void)
+static void gba_initconio(void)
 {
     GBA_REG_DISPCNT = GBA_DISP_MODE_4 | GBA_DISP_BG2_ON;/*  256 color bitmapped mode */
     const BgAffineDestData bgAffineReset = {256,0,0,256,0,-256*2};



More information about the vc mailing list