OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c06a41
)
util/log: Mark qemu_log_trylock as G_GNUC_WARN_UNUSED_RESULT
author
Richard Henderson
<richard.henderson@linaro.org>
Sun, 17 Apr 2022 18:29:58 +0000
(11:29 -0700)
committer
Richard Henderson
<richard.henderson@linaro.org>
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 <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <
20220417183019
.755276-19-richard.henderson@linaro.org>
include/qemu/log.h
patch
|
blob
|
history
diff --git
a/include/qemu/log.h
b/include/qemu/log.h
index
2d9455d
..
3a1f3a6
100644
(file)
--- a/
include/qemu/log.h
+++ b/
include/qemu/log.h
@@
-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: */