diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2023-02-26 11:30:21 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2023-02-26 11:30:21 +0100 |
commit | 32b2216136fdfab2c0b2c5d263936eeffa75e57d (patch) | |
tree | 61f0a23e16fabf7fca557daad5779162e5517470 /lock.c | |
parent | 525fff3659c7b6b723ffa0347832e9132936a76e (diff) | |
download | fetchmail-32b2216136fdfab2c0b2c5d263936eeffa75e57d.tar.gz fetchmail-32b2216136fdfab2c0b2c5d263936eeffa75e57d.tar.bz2 fetchmail-32b2216136fdfab2c0b2c5d263936eeffa75e57d.zip |
lock.c: work around stupid GCC 7, GCC 9 warnings
that warn about an unused return value although
it is explicitly cast to void. Use a dummy
variable and cast that to void instead...
Diffstat (limited to 'lock.c')
-rw-r--r-- | lock.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -61,7 +61,8 @@ static void unlockit(void) { if (lockfile && lock_acquired) { if (unlink(lockfile)) { - (void)truncate(lockfile, (off_t)0); + int dummy = truncate(lockfile, (off_t)0); + (void)dummy; } } } |