summaryrefslogtreecommitdiff
path: root/dbus/dbus-macros.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2016-10-07 19:28:47 +0100
committerSimon McVittie <smcv@debian.org>2016-10-13 22:44:13 +0100
commitcba4fac6d329c92182ae09fcad9d8d182ad725f1 (patch)
tree2afc35426ef4a7cfead0023cb57b19db43a0facd /dbus/dbus-macros.h
parent35cdfc5e76543813366c3f7f050f58681988a904 (diff)
downloaddbus-cba4fac6d329c92182ae09fcad9d8d182ad725f1.tar.gz
Enable format, noreturn, unused attributes for clang
I'm assuming here that any version of clang will be new enough to understand gcc 2.4 features, which seems rather safe. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'dbus/dbus-macros.h')
-rw-r--r--dbus/dbus-macros.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbus/dbus-macros.h b/dbus/dbus-macros.h
index a82d911e..0e784fe1 100644
--- a/dbus/dbus-macros.h
+++ b/dbus/dbus-macros.h
@@ -64,7 +64,8 @@
# define _DBUS_GNUC_EXTENSION
#endif
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
+#if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)) || \
+ defined(__clang__)
#define _DBUS_GNUC_PRINTF( format_idx, arg_idx ) \
__attribute__((__format__ (__printf__, format_idx, arg_idx)))
#define _DBUS_GNUC_NORETURN \