diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-11-01 23:01:24 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-11-01 23:10:25 +0100 |
commit | 3f6914175c562e0193abfff9202bbd496daa1cae (patch) | |
tree | d2dbbe500c98bff9681fdac68ada379a2929ee05 /src/basic/fileio.c | |
parent | 518044605173fee73f9e4b08a62624ae4b4f5bd2 (diff) | |
download | systemd-3f6914175c562e0193abfff9202bbd496daa1cae.tar.gz systemd-3f6914175c562e0193abfff9202bbd496daa1cae.tar.bz2 systemd-3f6914175c562e0193abfff9202bbd496daa1cae.zip |
util-lib: mark variable with _unused_ to silence clang warning
_unused_ means "the variable is meant to be possible unused and gcc
will not generate a warning about it", which is exactly what we need here,
since we're only declaring it for the side effect of _cleanup_.
Diffstat (limited to 'src/basic/fileio.c')
-rw-r--r-- | src/basic/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/fileio.c b/src/basic/fileio.c index 9ee7a4af38..0ae330541d 100644 --- a/src/basic/fileio.c +++ b/src/basic/fileio.c @@ -1556,7 +1556,7 @@ int read_line(FILE *f, size_t limit, char **ret) { } { - _cleanup_(funlockfilep) FILE *flocked = f; + _unused_ _cleanup_(funlockfilep) FILE *flocked = f; flockfile(f); for (;;) { |