File hdf5-1.8.5.1-noreturn.patch of Package hdf5

Index: hl/src/H5LTanalyze.c
===================================================================
--- hl/src/H5LTanalyze.c.orig
+++ hl/src/H5LTanalyze.c
@@ -2329,7 +2329,7 @@ int my_yyinput(char *buf, int max_size)
    return ret;
 }
 
-int H5LTyyerror(char *msg)
+void H5LTyyerror(char *msg)
 {
    printf("ERROR: %s before \"%s\".\n", msg, yytext);
 }
Index: hl/src/H5LTanalyze.l
===================================================================
--- hl/src/H5LTanalyze.l.orig
+++ hl/src/H5LTanalyze.l
@@ -181,7 +181,7 @@ int my_yyinput(char *buf, int max_size)
    return ret;
 }
 
-int H5LTyyerror(char *msg)
+void H5LTyyerror(char *msg)
 {
    printf("ERROR: %s before \"%s\".\n", msg, yytext);
 }
Index: hl/src/H5LTparse.c
===================================================================
--- hl/src/H5LTparse.c.orig
+++ hl/src/H5LTparse.c
@@ -63,7 +63,7 @@ static int yygrowstack();
 #include<hdf5.h>
 
 extern int yylex();
-extern int yyerror(char *);
+extern void yyerror(char *);
 
 #define STACK_SIZE      16
 
Index: test/dt_arith.c
===================================================================
--- test/dt_arith.c.orig
+++ test/dt_arith.c
@@ -3409,6 +3409,7 @@ error:
     else if(run_test==TEST_DENORM || run_test==TEST_SPECIAL)
         return 1;
 #endif
+    return 1;
 }
 
 
Index: tools/h5dump/h5dump.c
===================================================================
--- tools/h5dump/h5dump.c.orig
+++ tools/h5dump/h5dump.c
@@ -628,6 +628,7 @@ static const dump_functions *dump_functi
  *
  *-------------------------------------------------------------------------
  */
+static void leave(int ret) __attribute__ ((__noreturn__));
 static void
 leave(int ret)
 {
Index: tools/h5ls/h5ls.c
===================================================================
--- tools/h5ls/h5ls.c.orig
+++ tools/h5ls/h5ls.c
@@ -2144,6 +2144,7 @@ get_width(void)
  *
  *-------------------------------------------------------------------------
  */
+static void leave(int ret) __attribute__ ((__noreturn__));
 static void
 leave(int ret)
 {
Index: tools/h5stat/h5stat.c
===================================================================
--- tools/h5stat/h5stat.c.orig
+++ tools/h5stat/h5stat.c
@@ -194,6 +194,7 @@ static struct long_options l_opts[] = {
     { NULL, 0, '\0' }
 };
 
+static void leave(int ret) __attribute__ ((__noreturn__));
 static void
 leave(int ret)
 {
openSUSE Build Service is sponsored by