[hackers] [scc] [cc1] Fix debug declaration || Quentin Rameau

From: <git_AT_suckless.org>
Date: Fri, 17 Feb 2017 23:06:58 +0100 (CET)

commit d553bfe3ba8be8d05a14fabb1aa1f93327983646
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu Feb 16 10:24:51 2017 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Fri Feb 17 22:51:32 2017 +0100

    [cc1] Fix debug declaration

diff --git a/cc1/fold.c b/cc1/fold.c
index 7f8416a..2cfa316 100644
--- a/cc1/fold.c
+++ b/cc1/fold.c
_AT_@ -643,7 +643,6 @@ Node *
 simplify(Node *np)
 {
         Node *p, *l, *r;
- extern int debug;
 
         if (!np)
                 return NULL;
diff --git a/inc/cc.h b/inc/cc.h
index be86109..dfbf96a 100644
--- a/inc/cc.h
+++ b/inc/cc.h
_AT_@ -1,8 +1,9 @@
 /* See LICENSE file for copyright and license details. */
 #include <stddef.h>
 
-#ifndef NDEBUG
 extern int debug;
+
+#ifndef NDEBUG
 #define DBG(...) dbg(__VA_ARGS__)
 #define DBGON() (debug = 1)
 #else
Received on Fri Feb 17 2017 - 23:06:58 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 17 2017 - 23:12:30 CET