]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sulogin: remove __nonnull__ function attribute
authorSami Kerola <kerolasa@iki.fi>
Sat, 2 Jul 2016 09:28:55 +0000 (10:28 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 14 Jul 2016 10:28:53 +0000 (12:28 +0200)
commitb236e43ef052fa5d18b72b28338bae2f7f3e8b56
treea1410d7707b283763cdcfadb12b440d66eb57b71
parent0d474d29c58f36085d3dfdfc22524e0870527e00
sulogin: remove __nonnull__ function attribute

This change fixes compiler option -Werror=nonnull option warning:

login-utils/sulogin-consoles.c: In function 'append_console':
login-utils/sulogin-consoles.c:324:14: warning: nonnull argument 'consoles'
compared to NULL [-Wnonnull-compare]

The NULL check done with list_empty() looks valid, so  it is best to remove
the function attribute that allows compiler to optimize the check away.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
login-utils/sulogin-consoles.c