summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/config.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/config.h b/src/config.h
index ad2e481..45422a2 100644
--- a/src/config.h
+++ b/src/config.h
@@ -203,9 +203,7 @@ typedef long double max_align_t;
/**
* Silence warnings about unused declarations.
*/
-#if __has_c_attribute(maybe_unused)
-# define attr_maybe_unused [[maybe_unused]]
-#elif __has_attribute(unused)
+#if __has_attribute(unused)
# define attr_maybe_unused __attribute__((unused))
#else
# define attr_maybe_unused
@@ -214,9 +212,7 @@ typedef long double max_align_t;
/**
* Warn if a value is unused.
*/
-#if __has_c_attribute(nodiscard)
-# define attr_nodiscard [[nodiscard]]
-#elif __has_attribute(warn_unused_result)
+#if __has_attribute(warn_unused_result)
# define attr_nodiscard __attribute__((warn_unused_result))
#else
# define attr_nodiscard