commit d553bfe3ba8be8d05a14fabb1aa1f93327983646
Author: Quentin Rameau <[email protected]>
AuthorDate: Thu Feb 16 10:24:51 2017 +0100
Commit: Quentin Rameau <[email protected]>
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
@@ -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
@@ -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