gbranden pushed a commit to branch master
in repository groff.

commit d3d6d42f0c2aa2a9eb9a634fe865c4220d6e717d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Mar 25 13:33:10 2026 -0500

    [libgroff]: Improve internal organization (3/4).
    
    * src/include/htmlhint.h: Drop redundant keyword `extern` from
      `html_begin_suppress()` and `html_end_suppress()` function
      declarations.
    
    * src/libs/libgroff/htmlhint.cpp: Use preprocessor to include
      "htmlhint.h" header file.
    
    Fixes `-Wmissing-declarations` warning.
---
 ChangeLog                      | 10 ++++++++++
 src/include/htmlhint.h         |  4 ++--
 src/libs/libgroff/htmlhint.cpp |  1 +
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4d812de33..e5b27b6f4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,16 @@
        * src/devices/grops/ps.cpp: Drop unnecessary preprocessor
        inclusions of "paper.h" header file.
 
+2026-03-25  G. Branden Robinson <[email protected]>
+
+       * src/include/htmlhint.h: Drop redundant keyword `extern` from
+       `html_begin_suppress()` and `html_end_suppress()` function
+       declarations.
+       * src/libs/libgroff/htmlhint.cpp: Use preprocessor to include
+       "htmlhint.h" header file.
+
+       Fixes `-Wmissing-declarations` warning.
+
 2026-03-25  G. Branden Robinson <[email protected]>
 
        * src/include/lf.h: Declare `change_filename()` and
diff --git a/src/include/htmlhint.h b/src/include/htmlhint.h
index 86805695b..95918ccb6 100644
--- a/src/include/htmlhint.h
+++ b/src/include/htmlhint.h
@@ -26,12 +26,12 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
  *                        Only called for inline images (such as eqn).
  *
  */
-extern void html_begin_suppress();
+void html_begin_suppress();
 
 /*
  *  html_end_suppress - end the suppression of output.
  */
-extern void html_end_suppress();
+void html_end_suppress();
 
 #endif
 
diff --git a/src/libs/libgroff/htmlhint.cpp b/src/libs/libgroff/htmlhint.cpp
index 707e9b3f3..f35206cf1 100644
--- a/src/libs/libgroff/htmlhint.cpp
+++ b/src/libs/libgroff/htmlhint.cpp
@@ -24,6 +24,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 #include <stddef.h>
 #include <stdlib.h>
 
+#include "htmlhint.h"
 #include "lib.h"
 
 #include "nonposix.h"

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

Reply via email to