diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-12-20 18:34:49 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-12-20 20:19:18 -0500 |
commit | 2f3653bf522ce079501254bfd34abbf884dc528e (patch) | |
tree | c4293033143166e6a52a6e5a03b618d60bd18f3e /src/config.h | |
parent | a85fc263a89fb89bc8b2a8166747660a177b1773 (diff) | |
download | bfs-2f3653bf522ce079501254bfd34abbf884dc528e.tar.xz |
config: Fix attr_nodiscard to use warn_unused_result
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.h b/src/config.h index 46f1efe..91cef71 100644 --- a/src/config.h +++ b/src/config.h @@ -212,8 +212,8 @@ typedef long double max_align_t; */ #if __has_c_attribute(nodiscard) # define attr_nodiscard [[nodiscard]] -#elif __has_attribute(nodiscard) -# define attr_nodiscard __attribute__((nodiscard)) +#elif __has_attribute(warn_unused_result) +# define attr_nodiscard __attribute__((warn_unused_result)) #else # define attr_nodiscard #endif |