summary refs log tree commit diff stats
path: root/include/qemu/range.h
diff options
context:
space:
mode:
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 f62b363e0d..7e2b1cc447 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;