File hdf5-noreturn.patch of Package hdf5

diff -Naur hdf5-1.8.6.orig/hl/src/H5LTanalyze.c hdf5-1.8.6/hl/src/H5LTanalyze.c
--- hdf5-1.8.6.orig/hl/src/H5LTanalyze.c	2011-04-29 13:24:56.805438857 -0400
+++ hdf5-1.8.6/hl/src/H5LTanalyze.c	2011-04-29 13:50:20.045395737 -0400
@@ -2329,7 +2329,7 @@
    return ret;
 }
 
-int H5LTyyerror(char *msg)
+void H5LTyyerror(char *msg)
 {
    printf("ERROR: %s before \"%s\".\n", msg, yytext);
 }
diff -Naur hdf5-1.8.6.orig/hl/src/H5LTanalyze.l hdf5-1.8.6/hl/src/H5LTanalyze.l
--- hdf5-1.8.6.orig/hl/src/H5LTanalyze.l	2011-04-29 13:24:56.805438857 -0400
+++ hdf5-1.8.6/hl/src/H5LTanalyze.l	2011-04-29 13:50:56.697937518 -0400
@@ -181,7 +181,7 @@
    return ret;
 }
 
-int H5LTyyerror(char *msg)
+void H5LTyyerror(char *msg)
 {
    printf("ERROR: %s before \"%s\".\n", msg, yytext);
 }
diff -Naur hdf5-1.8.6.orig/hl/src/H5LTparse.c hdf5-1.8.6/hl/src/H5LTparse.c
--- hdf5-1.8.6.orig/hl/src/H5LTparse.c	2011-04-29 13:24:56.805438857 -0400
+++ hdf5-1.8.6/hl/src/H5LTparse.c	2011-04-29 13:51:25.690575059 -0400
@@ -63,7 +63,7 @@
 #include<hdf5.h>
 
 extern int yylex();
-extern int yyerror(char *);
+extern void yyerror(char *);
 
 #define STACK_SIZE      16
 
diff -Naur hdf5-1.8.6.orig/test/dt_arith.c hdf5-1.8.6/test/dt_arith.c
--- hdf5-1.8.6.orig/test/dt_arith.c	2011-04-29 13:24:56.755439483 -0400
+++ hdf5-1.8.6/test/dt_arith.c	2011-04-29 13:53:17.683174959 -0400
@@ -3464,6 +3464,7 @@
     else if(run_test==TEST_DENORM || run_test==TEST_SPECIAL)
         return 1;
 #endif
+    return 1;
 }
 
 
diff -Naur hdf5-1.8.6.orig/tools/h5dump/h5dump.c hdf5-1.8.6/tools/h5dump/h5dump.c
--- hdf5-1.8.6.orig/tools/h5dump/h5dump.c	2011-04-29 13:24:56.431443533 -0400
+++ hdf5-1.8.6/tools/h5dump/h5dump.c	2011-04-29 13:54:56.900934567 -0400
@@ -628,6 +628,7 @@
  *
  *-------------------------------------------------------------------------
  */
+static void leave(int ret) __attribute__ ((__noreturn__));
 static void
 leave(int ret)
 {
diff -Naur hdf5-1.8.6.orig/tools/h5ls/h5ls.c hdf5-1.8.6/tools/h5ls/h5ls.c
--- hdf5-1.8.6.orig/tools/h5ls/h5ls.c	2011-04-29 13:24:56.370444295 -0400
+++ hdf5-1.8.6/tools/h5ls/h5ls.c	2011-04-29 13:55:42.983358458 -0400
@@ -2195,6 +2195,7 @@
  *
  *-------------------------------------------------------------------------
  */
+static void leave(int ret) __attribute__ ((__noreturn__));
 static void
 leave(int ret)
 {
diff -Naur hdf5-1.8.6.orig/tools/h5stat/h5stat.c hdf5-1.8.6/tools/h5stat/h5stat.c
--- hdf5-1.8.6.orig/tools/h5stat/h5stat.c	2011-04-29 13:24:56.373444258 -0400
+++ hdf5-1.8.6/tools/h5stat/h5stat.c	2011-04-29 13:56:15.138956458 -0400
@@ -194,6 +194,7 @@
     { NULL, 0, '\0' }
 };
 
+static void leave(int ret) __attribute__ ((__noreturn__));
 static void
 leave(int ret)
 {
openSUSE Build Service is sponsored by