File hdf5-non_void_return.patch of Package hdf5

Index: test/dt_arith.c
===================================================================
--- test/dt_arith.c.orig	2011-11-27 14:22:13.000000000 +0100
+++ test/dt_arith.c	2011-11-27 14:22:21.908435252 +0100
@@ -3470,6 +3470,7 @@ error:
     else if(run_test==TEST_DENORM || run_test==TEST_SPECIAL)
         return 1;
 #endif
+    return 1; // return from non void fix
 }
 
 
Index: tools/h5diff/h5diff_common.c
===================================================================
--- tools/h5diff/h5diff_common.c.orig	2011-11-07 23:11:35.000000000 +0100
+++ tools/h5diff/h5diff_common.c	2011-11-27 14:23:49.105943847 +0100
@@ -69,6 +69,7 @@ static check_options(diff_opt_t* options
         printf("Try '-h' or '--help' option for more information or see the %s entry in the 'HDF5 Reference Manual'.\n", PROGRAMNAME);
         h5diff_exit(EXIT_FAILURE);
     }
+    return (0); // no return in non void function fix
 }
 
 
--- test/filter_fail.c.orig	2012-05-09 17:05:49.000000000 +0200
+++ test/filter_fail.c	2012-06-22 09:03:42.885161176 +0200
@@ -408,4 +408,5 @@ error:
                nerrors, 1==nerrors?"":"S");
         HDexit(1);
     }
+    return 1; // no return in non void function fix
 }
--- ./tools/h5dump/h5dump.c.orig	2012-06-22 09:08:06.118448407 +0200
+++ ./tools/h5dump/h5dump.c	2012-06-22 09:07:36.352205461 +0200
@@ -1658,6 +1658,7 @@ done:
     H5Eset_auto2(H5E_DEFAULT, func, edata);
 
     leave(h5tools_getstatus());
+    return 1; // no return in non void function fix
 }
 
 /*-------------------------------------------------------------------------
--- ./tools/h5ls/h5ls.c.orig	2012-05-09 17:06:15.000000000 +0200
+++ ./tools/h5ls/h5ls.c	2012-06-22 09:09:50.224802879 +0200
@@ -2872,5 +2872,7 @@ main(int argc, const char *argv[])
         leave(EXIT_FAILURE);
     else
         leave(EXIT_SUCCESS);
+
+    return 1; // no return in non void function fix
 } /* end main() */
 
--- ./tools/h5stat/h5stat.c.orig	2012-05-09 17:06:15.000000000 +0200
+++ ./tools/h5stat/h5stat.c	2012-06-22 09:11:07.678837985 +0200
@@ -1546,5 +1546,7 @@ done:
     }
 
     leave(h5tools_getstatus());
+
+    return 1; // no return in non void function fix
 }
 
openSUSE Build Service is sponsored by