[hackers] [sbase] Silence stupid warnings when building sbase-box || sin

From: <git_AT_suckless.org>
Date: Mon, 17 Nov 2014 11:52:28 +0100

commit de4a36957e17df8b291e0fd1e2d59f9ce6b3172f
Author: sin <sin_AT_2f30.org>
Date: Mon Nov 17 10:51:36 2014 +0000

    Silence stupid warnings when building sbase-box

diff --git a/chroot.c b/chroot.c
index 07c4e31..db42616 100644
--- a/chroot.c
+++ b/chroot.c
_AT_@ -45,4 +45,6 @@ main(int argc, char *argv[])
         savederrno = errno;
         weprintf("execvp %s:", p);
         _exit(savederrno == ENOENT ? 127 : 126);
+ /* unreachable */
+ return 0;
 }
diff --git a/nohup.c b/nohup.c
index f379046..967ad38 100644
--- a/nohup.c
+++ b/nohup.c
_AT_@ -48,4 +48,6 @@ main(int argc, char *argv[])
         execvp(argv[0], &argv[0]);
         enprintf(errno == ENOENT ? Error : Found, "exec %s:", argv[0]);
         _exit(Error);
+ /* unreachable */
+ return 0;
 }
Received on Mon Nov 17 2014 - 11:52:28 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 17 2014 - 12:00:15 CET