Re: [RFC PATCH] reftable: fixup for broken __FUNCTION__ use

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

 



On Thu, Aug 26, 2021 at 11:01 PM Ævar Arnfjörð Bjarmason
<avarab@xxxxxxxxx> 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




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux