gbranden pushed a commit to branch master
in repository groff.

commit b24feff38c171b0f584fe0e7af24b7438c7f97fd
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jun 4 22:40:37 2024 -0500

    m4/groff.m4: Fix Savannah #65762.
    
    * m4/groff.m4 (GROFF_WCOREFLAG): Use `AC_LANG_PROGRAM` more
      idiomatically; stop explicitly defining `main()`.  Reportedly resolves
      implicit function declaration warnings from Clang.
    
    Fixes <https://savannah.gnu.org/bugs/?65762>.  Thanks to Eli Schwartz
    for the report.
---
 ChangeLog   | 9 +++++++++
 m4/groff.m4 | 3 ---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 98b8293ae..9d9af92bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-06-04  G. Branden Robinson <[email protected]>
+
+       * m4/groff.m4 (GROFF_WCOREFLAG): Use `AC_LANG_PROGRAM` more
+       idiomatically; stop explicitly defining `main()`.  Reportedly
+       resolves implicit function declaration warnings from Clang.
+
+       Fixes <https://savannah.gnu.org/bugs/?65762>.  Thanks to Eli
+       Schwartz for the report.
+
 2024-06-04  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (interpolate_arg): Stop embedding
diff --git a/m4/groff.m4 b/m4/groff.m4
index ebbe60d52..0e3613a18 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -942,8 +942,6 @@ AC_DEFUN([GROFF_WCOREFLAG],
        ]],
        [[
 
-main()
-{
 #ifdef WCOREFLAG
   exit(1);
 #else
@@ -951,7 +949,6 @@ main()
   ((union wait *)&i)->w_coredump = 1;
   exit(i != 0200);
 #endif
-}
 
        ]])
      ],

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

Reply via email to