From a42dbdb9d7e43da1f20278d918a9de0457019535 Mon Sep 17 00:00:00 2001 From: Bjarni Ingi Gislason Date: Sat, 6 Nov 2021 17:21:02 +0000 Subject: [PATCH] pacify the compiler for unconditional "define DEBUGGING" Test if "DEBUGGING" is defined before redefining it. CXX src/roff/troff/input.o ../src/roff/troff/input.cpp:19: warning: "DEBUGGING" redefined 19 | #define DEBUGGING | : note: this is the location of the previous definition CXX src/roff/troff/mtsm.o ../src/roff/troff/mtsm.cpp:20: warning: "DEBUGGING" redefined 20 | #define DEBUGGING | Signed-off-by: Bjarni Ingi Gislason --- src/roff/troff/input.cpp | 4 +++- src/roff/troff/mtsm.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp index 7fd07b78..77ca767d 100644 --- a/src/roff/troff/input.cpp +++ b/src/roff/troff/input.cpp @@ -16,7 +16,9 @@ for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#define DEBUGGING +#ifndef DEBUGGING +# define DEBUGGING +#endif #include "troff.h" #include "dictionary.h" diff --git a/src/roff/troff/mtsm.cpp b/src/roff/troff/mtsm.cpp index 7f1b26fd..bd27ef9b 100644 --- a/src/roff/troff/mtsm.cpp +++ b/src/roff/troff/mtsm.cpp @@ -17,7 +17,9 @@ for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#define DEBUGGING +#ifndef DEBUGGING +# define DEBUGGING +#endif extern int debug_state; -- 2.33.0