Re: [RFC PATCH] reftable: fixup for broken __FUNCTION__ use
- From
Carlo Arenas <carenas@gmail.com>
- Date
- Aug 27, 2021, 07:00 UTC
- Message-ID
- <CAPUEspj4AbB+8O80vQ7etOwn3XMs3Gnc-cBc8=WaCDg6+zruQg@mail.gmail.com>
- In-Reply-To
- <patch-1.1-f7d9c8af0c-20210827T055608Z-avarab@gmail.com>
On Thu, Aug 26, 2021 at 11:01 PM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
> > The use of the __FUNCTION__ macro is non-standard
and is also problematic because it is a "magic" variable[1] instead of a string literal.
FWIW, __func__ has also the same problem but it is part of C99; I still like Junio's solution better than my own that was using those.
[1] https://gcc.gnu.org/onlinedocs/gcc/Function-Names.html