]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
lib/blkid: suppress -Wunused-result warning in blkid_flush_cache()
authorEric Biggers <ebiggers@google.com>
Sat, 21 Jan 2023 20:32:02 +0000 (12:32 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 17:33:59 +0000 (12:33 -0500)
commitb575249eb334e3f95319eea68c9606f43db05a07
tree81c1399a3a51f21cc1b41172cb61ab8be3bf5eb6
parent8eb4a1d71d539a3867b4ddc1ab7c924b033218a6
lib/blkid: suppress -Wunused-result warning in blkid_flush_cache()

When _FORTIFY_SOURCE is defined, glibc annotates link() with the
warn_unused_result function attribute.  With gcc, that makes
'(void) link()' cause a -Wunused-result warning, despite the explicit
cast to void.  That's annoying, since the use case in lib/blkid/save.c
is legitimate (opportunistic backup).  So let's suppress this warning.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/blkid/save.c