summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-07-20 15:09:16 -0400
committerColin Walters <walters@verbum.org>2017-07-20 15:12:08 -0400
commit7d6a31fb9316ec85d462c26b84fb8fe9ca04ef2b (patch)
tree4e91d09cbec54fa59308bfd00902483857de47fd
parent1468b70dbf19fc48cfbf0b19b7c7ffa9157cfb84 (diff)
downloadlibglnx-7d6a31fb9316ec85d462c26b84fb8fe9ca04ef2b.tar.gz
errors: Mark GLNX_AUTO_PREFIX_ERROR() as used
Since it's intentional we never use it, and `clang` barfs on this (rightly).
-rw-r--r--glnx-errors.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/glnx-errors.h b/glnx-errors.h
index ecf7e85..07c30fe 100644
--- a/glnx-errors.h
+++ b/glnx-errors.h
@@ -112,7 +112,8 @@ glnx_cleanup_auto_prefix_error (GLnxAutoErrorPrefix *prefix)
g_prefix_error (prefix->error, "%s: ", prefix->prefix);
}
G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GLnxAutoErrorPrefix, glnx_cleanup_auto_prefix_error)
-#define GLNX_AUTO_PREFIX_ERROR(text, error) g_auto(GLnxAutoErrorPrefix) _GLNX_MAKE_ANONYMOUS(_glnxautoprefixerror_) = { text, error }
+#define GLNX_AUTO_PREFIX_ERROR(text, error) \
+ G_GNUC_UNUSED g_auto(GLnxAutoErrorPrefix) _GLNX_MAKE_ANONYMOUS(_glnxautoprefixerror_) = { text, error }
/* Set @error using the value of `g_strerror (errno)`.
*