hdf5/hdf5-non_void_return.patch

102 lines
2.8 KiB
Diff
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Index: test/dt_arith.c
===================================================================
--- test/dt_arith.c.orig
+++ test/dt_arith.c
@@ -3497,6 +3497,7 @@ error:
else if(run_test==TEST_DENORM || run_test==TEST_SPECIAL)
return 1;
#endif
+ return 1;
}
Index: tools/h5ls/h5ls.c
===================================================================
--- tools/h5ls/h5ls.c.orig
+++ tools/h5ls/h5ls.c
@@ -2528,7 +2528,7 @@ out:
*
*-------------------------------------------------------------------------
*/
-static void
+static void __attribute__((__noreturn__))
leave(int ret)
{
h5tools_close();
Index: tools/h5dump/h5dump.c
===================================================================
--- tools/h5dump/h5dump.c.orig
+++ tools/h5dump/h5dump.c
@@ -208,7 +208,7 @@ static struct long_options l_opts[] = {
*
*-------------------------------------------------------------------------
*/
-static void
+static void __attribute__((__noreturn__))
leave(int ret)
{
h5tools_close();
Index: tools/h5copy/h5copy.c
===================================================================
--- tools/h5copy/h5copy.c.orig
+++ tools/h5copy/h5copy.c
@@ -56,7 +56,7 @@ char *str_flag = NULL;
*
*-------------------------------------------------------------------------
*/
-static void
+static void __attribute__((__noreturn__))
leave(int ret)
{
if (fname_src)
Index: tools/h5repack/h5repack_main.c
===================================================================
--- tools/h5repack/h5repack_main.c.orig
+++ tools/h5repack/h5repack_main.c
@@ -21,7 +21,7 @@
#define PROGRAMNAME "h5repack"
static int parse_command_line(int argc, const char **argv, pack_opt_t* options);
-static void leave(int ret);
+static void leave(int ret) __attribute__((__noreturn__));
/* module-scoped variables */
Index: tools/misc/h5mkgrp.c
===================================================================
--- tools/misc/h5mkgrp.c.orig
+++ tools/misc/h5mkgrp.c
@@ -60,7 +60,7 @@ param_t params; /* Command l
*
*-------------------------------------------------------------------------
*/
-static void
+static void __attribute__((__noreturn__))
leave(int ret)
{
int curr_group;
Index: test/filter_fail.c
===================================================================
--- test/filter_fail.c.orig
+++ test/filter_fail.c
@@ -409,4 +409,6 @@ error:
nerrors, 1==nerrors?"":"S");
HDexit(1);
}
+
+ return 1;
}
Index: tools/h5stat/h5stat.c
===================================================================
--- tools/h5stat/h5stat.c.orig
+++ tools/h5stat/h5stat.c
@@ -223,7 +223,7 @@ static struct long_options l_opts[] = {
{ NULL, 0, '\0' }
};
-static void
+static void __attribute__((__noreturn__))
leave(int ret)
{
h5tools_close();