aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/range.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-02-24 00:58:22 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-03-22 14:40:51 +0400
commitc08401793a1f298b4d52410835b01ca9b64c313a (patch)
treedc6e619b3732ab994e9597f26bb8a98b7cdf8430 /include/qemu/range.h
parent9edc6313da34699ebd2bae4573ea22339b26450a (diff)
downloadqemu-c08401793a1f298b4d52410835b01ca9b64c313a.zip
qemu-c08401793a1f298b4d52410835b01ca9b64c313a.tar.gz
qemu-c08401793a1f298b4d52410835b01ca9b64c313a.tar.bz2
compiler.h: replace QEMU_WARN_UNUSED_RESULT with G_GNUC_WARN_UNUSED_RESULT
One less qemu-specific macro. It also helps to make some headers/units only depend on glib, and thus moved in standalone projects eventually. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include/qemu/range.h')
-rw-r--r--include/qemu/range.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qemu/range.h b/include/qemu/range.h
index f62b363..7e2b1cc 100644
--- a/include/qemu/range.h
+++ b/include/qemu/range.h
@@ -114,8 +114,8 @@ static inline uint64_t range_upb(Range *range)
* @size may be 0. If the range would overflow, returns -ERANGE, otherwise
* 0.
*/
-static inline int QEMU_WARN_UNUSED_RESULT range_init(Range *range, uint64_t lob,
- uint64_t size)
+G_GNUC_WARN_UNUSED_RESULT
+static inline int range_init(Range *range, uint64_t lob, uint64_t size)
{
if (lob + size < lob) {
return -ERANGE;