]> Git Repo - qemu.git/commitdiff
util/log: Mark qemu_log_trylock as G_GNUC_WARN_UNUSED_RESULT
authorRichard Henderson <[email protected]>
Sun, 17 Apr 2022 18:29:58 +0000 (11:29 -0700)
committerRichard Henderson <[email protected]>
Wed, 20 Apr 2022 17:51:11 +0000 (10:51 -0700)
Now that all uses have been updated, consider a missing
test of the result of qemu_log_trylock a bug and Werror.

Reviewed-by: Alex BennĂ©e <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
Message-Id: <20220417183019[email protected]>

include/qemu/log.h

index 2d9455dc85e39c722da0be3a51f48f5872d543b9..3a1f3a60203f3cc5fc8d4d1a3b910d7fb0077663 100644 (file)
@@ -67,7 +67,7 @@ static inline bool qemu_log_separate(void)
 
 /* Lock/unlock output. */
 
-FILE *qemu_log_trylock(void);
+FILE *qemu_log_trylock(void) G_GNUC_WARN_UNUSED_RESULT;
 void qemu_log_unlock(FILE *fd);
 
 /* Logging functions: */
This page took 0.026182 seconds and 4 git commands to generate.