groff-commit
[Top][All Lists]
Advanced

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

[groff] 01/01: node.h: do not rely on C++11 features, fixes build with g


From: Ingo Schwarze
Subject: [groff] 01/01: node.h: do not rely on C++11 features, fixes build with gcc 4.2.1
Date: Thu, 15 Oct 2020 09:53:58 -0400 (EDT)

schwarze pushed a commit to branch master
in repository groff.

commit 5b34d465c97adec12b7dfb85d3e790091b5fc35a
Author: Ingo Schwarze <schwarze@openbsd.org>
AuthorDate: Wed Oct 14 15:19:04 2020 +0200

    node.h: do not rely on C++11 features, fixes build with gcc 4.2.1
    
    fixes https://savannah.gnu.org/bugs/?59270
    OK gbranden@
---
 src/roff/troff/node.cpp | 1 +
 src/roff/troff/node.h   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 4a4e7e1..72fff1c 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -1613,6 +1613,7 @@ output_file *the_output = 0;
 
 output_file::output_file()
 {
+       is_dying = false;
 }
 
 output_file::~output_file()
diff --git a/src/roff/troff/node.h b/src/roff/troff/node.h
index e1c1960..1fba460 100644
--- a/src/roff/troff/node.h
+++ b/src/roff/troff/node.h
@@ -626,7 +626,7 @@ class output_file {
   char make_g_plus_plus_shut_up;
 public:
   output_file();
-  bool is_dying = false;
+  bool is_dying;
   virtual ~output_file();
   virtual void trailer(vunits);
   virtual void flush() = 0;



reply via email to

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