help-make
[Top][All Lists]
Advanced

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

Re: warning: type of ‘error’ does not match original declaration


From: Paul Smith
Subject: Re: warning: type of ‘error’ does not match original declaration
Date: Mon, 09 Mar 2020 07:33:08 -0400
User-agent: Evolution 3.34.1-2

On Mon, 2020-03-09 at 10:51 +0100, R. Diez wrote:
> ../../make-4.3-src/lib/error.h:52:13: warning: type of ‘error’ does not
> match original declaration [-Wlto-type-mismatch]
> ../make-4.3-src/src/output.c:590:1: note: type mismatch in parameter 1
>   error (const floc *flocp, size_t len, const char *fmt, ...)
>   ^

Ugh.  This is pulled in from gnulib.

Very annoying that it defines external linkage for common function names
like "error" when we didn't explicitly pull in that module from gnulib (it
was pulled in as a side-effect from some other module--in fact even that
other module was pulled in as a side-effect).

I don't know if there's any way to fix this except by renaming the make
version of error() so they don't conflict.




reply via email to

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