SHA256
1
0
forked from pool/kbuild
kbuild/kbuild-dummy_noreturn.diff

26 lines
751 B
Diff
Raw Normal View History

Index: src/kmk/kmkbuiltin/expr.c
===================================================================
--- src/kmk/kmkbuiltin/expr.c.orig
+++ src/kmk/kmkbuiltin/expr.c
@@ -308,6 +308,8 @@ eval6(void)
return v;
} else {
error();
+ /* dummy return in order to make the build checks happy (this will never be reached) */
+ return NULL;
}
/* NOTREACHED */
}
Index: src/kmk/kmkbuiltin/kbuild_protection.c
===================================================================
--- src/kmk/kmkbuiltin/kbuild_protection.c.orig
+++ src/kmk/kmkbuiltin/kbuild_protection.c
@@ -29,6 +29,7 @@
#include "config.h"
#include <sys/types.h>
#include <stdlib.h>
+#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>