mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
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_.
This commit is contained in:
parent
5180446051
commit
3f6914175c
@ -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 (;;) {
|
||||
|
Loading…
Reference in New Issue
Block a user