LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kbuild-dummy_noreturn.diff of Package kbuild (Project home:bmwiedemann:reproducible:test)

Index: src/kmk/kmkbuiltin/expr.c
===================================================================
--- src/kmk/kmkbuiltin/expr.c.orig
+++ src/kmk/kmkbuiltin/expr.c
@@ -311,6 +311,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>