[hackers] [scc] [cc1] be sure to return the error code when it is set || Quentin Rameau

From: <git_AT_suckless.org>
Date: Wed, 15 Jun 2016 20:57:52 +0200 (CEST)

commit d785a7267039963ea252c124c7a0e686abef01f9
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Wed Jun 15 20:53:51 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Wed Jun 15 20:53:51 2016 +0200

    [cc1] be sure to return the error code when it is set

diff --git a/cc1/main.c b/cc1/main.c
index 19bcb39..db8b455 100644
--- a/cc1/main.c
+++ b/cc1/main.c
_AT_@ -18,11 +18,11 @@ jmp_buf recover;
 static char *output;
 int onlycpp;
 
+extern int failure;
+
 static void
 clean(void)
 {
- extern int failure;
-
         if (failure && output)
                 remove(output);
 }
_AT_@ -98,5 +98,5 @@ main(int argc, char *argv[])
                         decl();
         }
 
- return 0;
+ return failure;
 }
Received on Wed Jun 15 2016 - 20:57:52 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 15 2016 - 21:00:15 CEST