[rtems commit] testsuits/dl10 : Prototype missing

Sebastian Huber sebh at rtems.org
Sat Oct 10 13:16:00 UTC 2020


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

Author:    Frank Kühndel <frank.kuehndel at embedded-brains.de>
Date:      Mon Oct  5 16:25:19 2020 +0200

testsuits/dl10 : Prototype missing

Fix a compiler warning about a missing prototype.

If you wonder why the function name is not `static`:
The code in the file only serves a test where the dynamic object loader
(aka dlopen()) should handle duplicated symbols in an archive.

testsuites/libtests/dl10/dl10-o6.c:14:5: warning: no previous prototype
for 'rtems_main_o5' [-Wmissing-prototypes]
       14 | int rtems_main_o5 (void)
          |     ^~~~~~~~~~~~~

---

 testsuites/libtests/dl10/dl10-o6.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testsuites/libtests/dl10/dl10-o6.c b/testsuites/libtests/dl10/dl10-o6.c
index ab6deb1..2ac8027 100644
--- a/testsuites/libtests/dl10/dl10-o6.c
+++ b/testsuites/libtests/dl10/dl10-o6.c
@@ -7,6 +7,7 @@
  */
 
 #include "dl-load.h"
+#include "dl-o5.h"
 
 #include <inttypes.h>
 #include <rtems/test-info.h>



More information about the vc mailing list