bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61436] [PATCH] pacify the compiler for unconditional "define DEBUG


From: Bjarni Ingi Gislason
Subject: [bug #61436] [PATCH] pacify the compiler for unconditional "define DEBUGGING"
Date: Sat, 6 Nov 2021 13:27:14 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?61436>

                 Summary:  [PATCH] pacify the compiler for unconditional
"define DEBUGGING"
                 Project: GNU troff
            Submitted by: bjarniig
            Submitted on: Sat 06 Nov 2021 05:27:11 PM UTC
                Category: Core
                Severity: 3 - Normal
              Item Group: Warning/Suspicious behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

>From a42dbdb9d7e43da1f20278d918a9de0457019535 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
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
      |
<command-line>: 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 <bjarniig@rhi.hi.is>
---
 src/roff/troff/input.cpp | 4 +++-
 src/roff/troff/mtsm.cpp  | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

  The patch is in the attachment



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 06 Nov 2021 05:27:11 PM UTC  Name:
0001-pacify-the-compiler-for-unconditional-define-DEBUGGING.txt  Size: 2KiB  
By: bjarniig
Project groff, pacify compiler
<http://savannah.gnu.org/bugs/download.php?file_id=52212>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61436>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]