bug-gnulib
[Top][All Lists]
Advanced

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

Re: copy-file: Silence gcc warnings


From: Paul Eggert
Subject: Re: copy-file: Silence gcc warnings
Date: Fri, 26 May 2023 17:07:57 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 2023-05-26 15:41, Bruno Haible wrote:
Maybe by defining
error and error_at_line as inline functions

They're defined by glibc, no? The definitions might collide. Also, I suppose the compiler might not inline them and then we'd get a diagnostic anyway.

The basic problem is that the old 'error' API doesn't mix well with [[noreturn]] and the like. We could write a new function, "eexit" say, that behaves like "error" except it never returns. (I chose the name "eexit" so as to not mess up the indenting of existing code.)

Or we could just live with "die", as it works.



reply via email to

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