Move [[nodiscard]] before static. (#9117)
For some reason on gcc 11, putting the [[nodiscard]] attribute after
`static` results in a parse error and attribute ignored warning. I
haven't looked into this further: I just swapped the order in the one
case where we have this.
Fixes #9025
diff --git a/runtime/src/iree/base/status.c b/runtime/src/iree/base/status.c
index d71ba53..acdf41f 100644
--- a/runtime/src/iree/base/status.c
+++ b/runtime/src/iree/base/status.c
@@ -628,9 +628,9 @@
(iree_status_payload_t*)payload);
}
-static IREE_MUST_USE_RESULT iree_status_t
-iree_status_annotate_vf(iree_status_t base_status, const char* format,
- va_list varargs_0, va_list varargs_1) {
+IREE_MUST_USE_RESULT static iree_status_t iree_status_annotate_vf(
+ iree_status_t base_status, const char* format, va_list varargs_0,
+ va_list varargs_1) {
if (iree_status_is_ok(base_status)) return base_status;
// If there's no storage yet we can just reuse normal allocation. Both that