[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ć
signature.asc
Description: PGP signature
- Re: namespacing issues with Gnulib, (continued)
- Re: -Wlto-type-mismatch warning in error(), Arsen Arsenović, 2022/12/08
- Re: -Wlto-type-mismatch warning in error(), Gavin Smith, 2022/12/09
- Re: -Wlto-type-mismatch warning in error(), Gavin Smith, 2022/12/09
- Re: -Wlto-type-mismatch warning in error(), Paul Eggert, 2022/12/10
- Re: -Wlto-type-mismatch warning in error(), Jeffrey Walton, 2022/12/11
- Re: -Wlto-type-mismatch warning in error(), Florian Weimer, 2022/12/09
Re: -Wlto-type-mismatch warning in error(),
Arsen Arsenović <=