[rtems commit] linpack/linpack-pc.c: Fix no return statement warning

Joel Sherrill joel at rtems.org
Mon Apr 24 22:21:55 UTC 2017


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

Author:    Joel Sherrill <joel at rtems.org>
Date:      Sun Apr 23 11:51:22 2017 -0500

linpack/linpack-pc.c: Fix no return statement warning

---

 testsuites/benchmarks/linpack/linpack-pc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testsuites/benchmarks/linpack/linpack-pc.c b/testsuites/benchmarks/linpack/linpack-pc.c
index 5b8bc1c..f85e677 100644
--- a/testsuites/benchmarks/linpack/linpack-pc.c
+++ b/testsuites/benchmarks/linpack/linpack-pc.c
@@ -534,6 +534,9 @@ int main (int argc, char **argv)
         fprintf(stdout,"\n");
         fprintf(stdout,ROLLING);fprintf(stdout,PREC);
         fprintf(stdout," Precision %11.2f Mflops \n\n",mflops);
+#ifdef __rtems__
+	return 0;
+#endif
 }
      
 /*----------------------*/ 



More information about the vc mailing list