[rtems commit] score: Remove superfluous semicolon

Sebastian Huber sebh at rtems.org
Fri Aug 3 11:04:43 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Aug  3 07:58:07 2018 +0200

score: Remove superfluous semicolon

This avoids warnings like this:

warning: ISO C does not allow extra ';' outside of a function [-Wpedantic]
 RTEMS_DECLARE_GLOBAL_SYMBOL( abc );
                                   ^

Update #3459.

---

 cpukit/include/rtems/score/basedefs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/include/rtems/score/basedefs.h b/cpukit/include/rtems/score/basedefs.h
index 679f4bd..fd803e1 100644
--- a/cpukit/include/rtems/score/basedefs.h
+++ b/cpukit/include/rtems/score/basedefs.h
@@ -257,7 +257,7 @@
  * The name must be a valid designator.
  */
 #define RTEMS_DECLARE_GLOBAL_SYMBOL( _name ) \
-  extern char _name[];
+  extern char _name[]
 
 /**
  * @brief Defines a global symbol with the specified name and value.




More information about the vc mailing list