bug-gnulib
[Top][All Lists]
Advanced

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

Re: -Wlto-type-mismatch warning in error()


From: Arsen Arsenović
Subject: Re: -Wlto-type-mismatch warning in error()
Date: Wed, 07 Dec 2022 22:10:49 +0100

Sam James <sam@gentoo.org> writes:

> ../gnulib/lib/error.h:33:13: error: type of ‘error’ does not match original 
> declaration [-Werror=lto-type-mismatch]
>    33 | extern void error (int __status, int __errnum, const char *__format, 
> ...)
>       |             ^
> install-info.c:218:1: note: type mismatch in parameter 1
>   218 | error (const char *fmt, ...)
>       | ^
> install-info.c:218:1: note: ‘error’ was previously declared here

This appears to be a result of error in install-info.c being non-static.
It could be static, and avoid a potential symbol collision.

-- 
Arsen Arsenović

Attachment: signature.asc
Description: PGP signature


reply via email to

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