|
| From: | Bruno Haible |
| Subject: | Re: copy-file: Silence gcc warnings |
| Date: | Sat, 27 May 2023 00:41:25 +0200 |
Pádraig Brady wrote: > FWIW grep/coreutils use a die() wrapper to achieve this > for this common idiom. > > [Link to github.com elided] https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=dad7ab0b7 Thanks for the pointer. Can we do better than that, without a 'die' macro? Maybe by defining error and error_at_line as inline functions that use __builtin_constant_p on the first argument? Bruno
| [Prev in Thread] | Current Thread | [Next in Thread] |