Skip to content
Snippets Groups Projects
Commit 7d6a31fb authored by Colin Walters's avatar Colin Walters
Browse files

errors: Mark GLNX_AUTO_PREFIX_ERROR() as used

Since it's intentional we never use it, and `clang` barfs on this (rightly).
parent 1468b70d
No related branches found
No related tags found
No related merge requests found
......@@ -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)`.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment