]> Savannah Git Hosting - gnulib.git/commit
stat-time: silence -Wunused-parameter regression
authorEric Blake <eblake@redhat.com>
Tue, 2 Jan 2018 21:49:27 +0000 (15:49 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 3 Jan 2018 14:53:48 +0000 (08:53 -0600)
commit3206134a2f02082166ec77643679e631222d8b54
tree7312a7ba1578127a4a9f6b0e4fa4d9136c214ba9
parent66a73cf890f4e6f301a7a3e098e745d5ea1aa158
stat-time: silence -Wunused-parameter regression

Commit 2c5d5587 causes warnings on non-Sun systems when compiled
under -Wunused-parameter; we've previously tweaked code in commit
81eb8486 to avoid such warnings.  Prefer an attribute rather than
a cast to void (the attribute is always okay to apply; gcc
interprets it as 'may be unused', not 'must not be used', precisely
to cater to #if chains where determining whether or not the
parameter is used gets hairy).

* lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
Prefer attribute over cast-to-void.
(stat_time_normalize): Mark st as potentially unused.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/stat-time.h