commit d785a7267039963ea252c124c7a0e686abef01f9
Author:     Quentin Rameau <[email protected]>
AuthorDate: Wed Jun 15 20:53:51 2016 +0200
Commit:     Quentin Rameau <[email protected]>
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
@@ -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);
 }
@@ -98,5 +98,5 @@ main(int argc, char *argv[])
                        decl();
        }
 
-       return 0;
+       return failure;
 }

Reply via email to