texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * install-info/install-info.c (error): Declare as


From: Gavin D. Smith
Subject: branch master updated: * install-info/install-info.c (error): Declare as static to avoid clash with error function from glibc, called from gnulib. Report from Sam James <address@hidden> and suggested solution from Arsen Arsenović <address@hidden>.
Date: Fri, 09 Dec 2022 20:11:35 -0500

This is an automated email from the git hooks/post-receive script.

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new c981ff287a * install-info/install-info.c (error): Declare as static to 
avoid clash with error function from glibc, called from gnulib. Report from Sam 
James <sam@gentoo.org> and suggested solution from Arsen Arsenović 
<arsen@aarsen.me>.
c981ff287a is described below

commit c981ff287a5ccd2c0bc7ffa0b428df2b2174a8bc
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Dec 10 01:10:38 2022 +0000

    * install-info/install-info.c (error): Declare as static to
    avoid clash with error function from glibc, called from gnulib.
    Report from Sam James <sam@gentoo.org> and suggested solution
    from Arsen Arsenović <arsen@aarsen.me>.
---
 ChangeLog                   | 7 +++++++
 install-info/install-info.c | 4 +++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 842cada785..8884eacec4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-12-07  Gavin Smith  <gavinsmith0123@gmail.com>
+
+       * install-info/install-info.c (error): Declare as static to
+       avoid clash with error function from glibc, called from gnulib.
+       Report from Sam James <sam@gentoo.org> and suggested solution
+       from Arsen Arsenović <arsen@aarsen.me>.
+
 2022-12-09  Patrice Dumas  <pertusus@free.fr>
 
        * tp/t/18itemize.t (@test_cases): add more tests of accents
diff --git a/install-info/install-info.c b/install-info/install-info.c
index 58bffacdb0..b9f7dc8e1d 100644
--- a/install-info/install-info.c
+++ b/install-info/install-info.c
@@ -214,7 +214,9 @@ vdiag (const char *fmt, const char *diagtype, va_list ap)
   putc ('\n', stderr);
 }
 
-void
+/* declare as static to avoid clash with glibc error function, called from
+   gnulib. */
+static void
 error (const char *fmt, ...)
 {
   va_list ap;



reply via email to

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