File hdf5-1.8.1-noreturn.patch of Package hdf5

--- c++/src/H5AbstractDs.cpp
+++ c++/src/H5AbstractDs.cpp
@@ -85,6 +85,8 @@
       else if (fromClass() == "Attribute")
 	 throw DataTypeIException("Attribute::getTypeClass", "H5Tget_class returns H5T_NO_CLASS");
    }
+
+   return (type_class);
 }
 
 //--------------------------------------------------------------------------
--- hl/src/H5LTanalyze.c
+++ hl/src/H5LTanalyze.c
@@ -2329,7 +2329,7 @@
    return ret;
 }
 
-int H5LTyyerror(char *msg)
+void H5LTyyerror(char *msg)
 {
    printf("ERROR: %s before \"%s\".\n", msg, yytext);
 }
--- hl/src/H5LTanalyze.l
+++ hl/src/H5LTanalyze.l
@@ -181,7 +181,7 @@
    return ret;
 }
 
-int H5LTyyerror(char *msg)
+void H5LTyyerror(char *msg)
 {
    printf("ERROR: %s before \"%s\".\n", msg, yytext);
 }
--- hl/src/H5LTparse.c
+++ hl/src/H5LTparse.c
@@ -64,7 +64,7 @@
 #include<hdf5.h>
 
 extern int yylex();
-extern int yyerror(char *);
+extern void yyerror(char *);
 
 #define STACK_SIZE      16
 
--- test/dt_arith.c
+++ test/dt_arith.c
@@ -3412,6 +3412,7 @@
     else if(run_test==TEST_DENORM || run_test==TEST_SPECIAL)
         return 1;
 #endif
+    return 1;
 }
 
 
--- tools/h5dump/h5dump.c
+++ tools/h5dump/h5dump.c
@@ -585,6 +585,7 @@
  *
  *-------------------------------------------------------------------------
  */
+static void leave(int ret) __attribute__ ((__noreturn__));
 static void
 leave(int ret)
 {
--- tools/h5ls/h5ls.c
+++ tools/h5ls/h5ls.c
@@ -1921,6 +1921,7 @@
  *
  *-------------------------------------------------------------------------
  */
+static void leave(int ret) __attribute__ ((__noreturn__));
 static void
 leave(int ret)
 {
--- tools/h5stat/h5stat.c
+++ tools/h5stat/h5stat.c
@@ -183,6 +183,7 @@
     { NULL, 0, '\0' }
 };
 
+static void leave(int ret) __attribute__ ((__noreturn__));
 static void
 leave(int ret)
 {
openSUSE Build Service is sponsored by