summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-03-22 14:06:04 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-03-22 14:06:04 -0400
commitc643e1dd27e633c67589b622a06582bbb6fb5cf6 (patch)
tree63b66d28f4121f077d464b8b5f426004cfe153fc /src/config.h
parent43fbffc232679ddd286f7c527755d15872c73d01 (diff)
downloadbfs-c643e1dd27e633c67589b622a06582bbb6fb5cf6.tar.xz
Fix some -Wpedantic warnings
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/config.h b/src/config.h
index 45422a2..892f24c 100644
--- a/src/config.h
+++ b/src/config.h
@@ -192,9 +192,7 @@ typedef long double max_align_t;
/**
* Silence warnings about switch/case fall-throughs.
*/
-#if __has_c_attribute(fallthrough)
-# define fallthru [[fallthrough]]
-#elif __has_attribute(fallthrough)
+#if __has_attribute(fallthrough)
# define fallthru __attribute__((fallthrough))
#else
# define fallthru ((void)0)
@@ -309,7 +307,7 @@ typedef long double max_align_t;
* attr_d
*/
#define attr(...) \
- attr__(attr_##__VA_ARGS__, none, none, none, none, none, none, none, none, none)
+ attr__(attr_##__VA_ARGS__, none, none, none, none, none, none, none, none, none, )
/**
* attr() helper. For exposition, pretend we support only 2 args, instead of 9.