gbranden pushed a commit to branch master
in repository groff.
commit e56e18e7aeeafa67d7430b564c55ec1ad56d38b4
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Mar 25 12:44:27 2026 -0500
[libgroff]: Improve internal organization (4/4).
* src/libs/libgroff/error.cpp: Drop `extern` declaration of
`fatal_error_exit()`, now delcared properly in "lib.h".
* src/libs/libgroff/fatal.cpp: Use preprocessor to include "errarg.h"
and "error.h" header files.
Fixes `-Wmissing-declarations` warning.
---
ChangeLog | 7 +++++++
src/libs/libgroff/fatal.cpp | 3 +++
2 files changed, 10 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index db34acbdd..04acf2a75 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,13 @@
* src/devices/grops/ps.cpp: Drop unnecessary preprocessor
inclusions of "paper.h" header file.
+2026-03-25 G. Branden Robinson <[email protected]>
+
+ * src/libs/libgroff/error.cpp: Drop `extern` declaration of
+ `fatal_error_exit()`, now delcared properly in "lib.h".
+ * src/libs/libgroff/fatal.cpp: Use preprocessor to include
+ "errarg.h" and "error.h" header files.
+
2026-03-25 G. Branden Robinson <[email protected]>
* src/libs/libgroff/change_lf.cpp (change_filename):
diff --git a/src/libs/libgroff/fatal.cpp b/src/libs/libgroff/fatal.cpp
index bd5f1204d..5941ba675 100644
--- a/src/libs/libgroff/fatal.cpp
+++ b/src/libs/libgroff/fatal.cpp
@@ -23,6 +23,9 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>. */
#include <stdlib.h>
+#include "errarg.h"
+#include "error.h"
+
#define FATAL_ERROR_EXIT_CODE 3
void fatal_error_exit()
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit