[rtems commit] dl06/dl06-o1.c: Remove set, not used warning

Joel Sherrill joel at rtems.org
Wed Aug 15 15:44:10 UTC 2018


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

Author:    Joel Sherrill <joel at rtems.org>
Date:      Wed Aug 15 09:48:28 2018 -0500

dl06/dl06-o1.c: Remove set, not used warning

---

 testsuites/libtests/dl06/dl06-o1.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/testsuites/libtests/dl06/dl06-o1.c b/testsuites/libtests/dl06/dl06-o1.c
index d3c882e..32e9a4a 100644
--- a/testsuites/libtests/dl06/dl06-o1.c
+++ b/testsuites/libtests/dl06/dl06-o1.c
@@ -34,7 +34,6 @@ int rtems_main (int argc, const char* argv[]);
 int rtems_main (int argc, const char* argv[])
 {
   func1_t        f1;
-  int            arg;
   double         d;
   unsigned short s[7] = { 12, 34, 56, 78, 90, 13, 57 };
 
@@ -47,7 +46,11 @@ int rtems_main (int argc, const char* argv[])
   f1 (s);
 
   d = dl_o2_func2 (7.1, 33.0);
+  (void) d;
+
   d = dl_o2_func3 (0.778899);
+  (void) d;
+
 
   return argc;
 }




More information about the vc mailing list