mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
util/log: Mark qemu_log_trylock as G_GNUC_WARN_UNUSED_RESULT
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 <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220417183019.755276-19-richard.henderson@linaro.org>
This commit is contained in:
parent
3c06a41746
commit
27ea81337f
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ static inline bool qemu_log_separate(void)
|
||||||
|
|
||||||
/* Lock/unlock output. */
|
/* Lock/unlock output. */
|
||||||
|
|
||||||
FILE *qemu_log_trylock(void);
|
FILE *qemu_log_trylock(void) G_GNUC_WARN_UNUSED_RESULT;
|
||||||
void qemu_log_unlock(FILE *fd);
|
void qemu_log_unlock(FILE *fd);
|
||||||
|
|
||||||
/* Logging functions: */
|
/* Logging functions: */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue