]> git.ipfire.org Git - thirdparty/util-linux.git/commit
login: retire use of __FUNCTION__ macro
authorKarel Zak <kzak@redhat.com>
Thu, 23 May 2019 19:27:37 +0000 (20:27 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 27 May 2019 09:55:19 +0000 (11:55 +0200)
commit9c6167c394bf5a7c374a6bd626478e1079facebe
tree17bae6a01dbb74a64a3f85afad9fcff480b539a9
parente4c6816cc34dd611ccbe0633aa222bd6dbae2572
login: retire use of __FUNCTION__ macro

This fixes following warning about deprecatd __FUNCTION__ that is another
name for __func__ since GCC (pre 2.95, released July 1999).

    login-utils/login.c:860:10: warning: ISO C does not support
    ‘__FUNCTION__’ predefined identifier [-Wpedantic]

Co-Author: Sami Kerola <kerolasa@iki.fi>
Reference: https://c0x.coding-guidelines.com/6.4.2.2.html
Reference: https://github.com/karelzak/util-linux/pull/802
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/login.c