gbranden pushed a commit to branch master
in repository groff.

commit d4d13da7326a54c201643a48149d792ec1354808
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Apr 28 01:34:22 2025 -0500

    src/utils/indxbib/indxbib.cpp: Drop unused func.
    
    * src/utils/indxbib/indxbib.cpp (fatal_error_exit): Do it.  Revealed by
      `-Wunused-function` when marking this function as `static`.
---
 ChangeLog                     |  8 ++++++++
 src/utils/indxbib/indxbib.cpp | 10 ++--------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 82d27103c..267527924 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-04-27  G. Branden Robinson <[email protected]>
+
+       [indxbib]: Drop dead code (unused function).
+
+       * src/utils/indxbib/indxbib.cpp (fatal_error_exit): Do it.
+       Revealed by `-Wunused-function` when marking this function as
+       `static`.
+
 2025-04-27  G. Branden Robinson <[email protected]>
 
        [troff]: Drop dead code (unused function).
diff --git a/src/utils/indxbib/indxbib.cpp b/src/utils/indxbib/indxbib.cpp
index 9671218ed..584c136b6 100644
--- a/src/utils/indxbib/indxbib.cpp
+++ b/src/utils/indxbib/indxbib.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 1989-2024 Free Software Foundation, Inc.
+/* Copyright (C) 1989-2025 Free Software Foundation, Inc.
      Written by James Clark ([email protected])
 
 This file is part of groff.
@@ -22,7 +22,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 
 #include <assert.h>
 #include <errno.h>
-#include <stdlib.h> // mkstemp(), strtol()
+#include <stdlib.h> // EXIT_SUCCESS, exit(), mkstemp(), strtol()
 #include <stdio.h> // EOF, FILE, fclose(), fdopen(), fopen(), fprintf(),
                   // fseek(), getc(), printf(), rename(), setbuf(),
                   // stderr, stdin, stdout, ungetc()
@@ -812,12 +812,6 @@ static void fwrite_or_die(const void *ptr, int size, int 
nitems,
     fatal("cannot write to file: %1", strerror(errno));
 }
 
-void fatal_error_exit()
-{
-  cleanup();
-  exit(3);
-}
-
 extern "C" {
 
 void cleanup()

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to