Skip to content

Commit

Permalink
Fix build after iree-org#15151 (iree-org#15236)
Browse files Browse the repository at this point in the history
Fixes the following build error (gcc-11.4):
```
/iree/runtime/src/iree/base/status.c:813:1: error: ‘nodiscard’ attribute ignored [-Werror=attributes]
  813 | static IREE_MUST_USE_RESULT iree_status_t iree_status_allocate_vf_impl(
      | ^~~~~~
```

Quick repro: https://godbolt.org/z/xYGddPxfd
  • Loading branch information
banach-space authored Oct 19, 2023
1 parent 4db7c1a commit b13037b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/iree/base/status.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ iree_status_allocate(iree_status_code_t code, const char* file, uint32_t line,
#endif // has any IREE_STATUS_FEATURES
}

static IREE_MUST_USE_RESULT iree_status_t iree_status_allocate_vf_impl(
IREE_MUST_USE_RESULT static iree_status_t iree_status_allocate_vf_impl(
iree_status_code_t code, const char* file, uint32_t line, int skip_frames,
const char* format, va_list varargs_0, va_list varargs_1) {
#if (IREE_STATUS_FEATURES & IREE_STATUS_FEATURE_ANNOTATIONS) == 0
Expand Down

0 comments on commit b13037b

Please sign in to comment.