[rtems commit] rtemsbuildname.c: Fix missing prototype warnings

Joel Sherrill joel at rtems.org
Sun Sep 22 15:32:20 UTC 2013


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sun Sep 22 10:01:58 2013 -0500

rtemsbuildname.c: Fix missing prototype warnings

---

 cpukit/rtems/src/rtemsbuildname.c |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/cpukit/rtems/src/rtemsbuildname.c b/cpukit/rtems/src/rtemsbuildname.c
index d834646..388d627 100644
--- a/cpukit/rtems/src/rtemsbuildname.c
+++ b/cpukit/rtems/src/rtemsbuildname.c
@@ -6,7 +6,7 @@
  */
 
 /*
- *  COPYRIGHT (c) 1989-2008.
+ *  COPYRIGHT (c) 1989-2013.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -21,7 +21,25 @@
 #include <rtems/system.h>
 #include <rtems/rtems/types.h>
 
+/*
+ *  Undefine since this is normally a macro and we want a real body in
+ *  the library for other language bindings.
+ */
 #undef rtems_build_name
+
+/*
+ *  Prototype it to avoid warnings
+ */
+rtems_name rtems_build_name(
+  char C1,
+  char C2,
+  char C3,
+  char C4
+);
+
+/*
+ *  Now define a real body
+ */
 rtems_name rtems_build_name(
   char C1,
   char C2,




More information about the vc mailing list