summaryrefslogtreecommitdiff
path: root/compiler.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-02 05:36:52 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-03-02 05:36:52 -0500
commitede118ecbb53c2e903965a67d57f841ce4b8fc85 (patch)
tree7745f829818ce498bff74107f1fe1dcaa9f9f5c1 /compiler.h
parent6e201e5649554b80c003e2cb7753ac045a5c965a (diff)
downloadgpsd-ede118ecbb53c2e903965a67d57f841ce4b8fc85.tar.gz
clang can declare unused for arguments, too.
All regression tests pass with CC=clang.
Diffstat (limited to 'compiler.h')
-rw-r--r--compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler.h b/compiler.h
index beaea478..2b5ea105 100644
--- a/compiler.h
+++ b/compiler.h
@@ -18,7 +18,7 @@
#endif
/* Macro for declaring function arguments unused. */
-#if defined(__GNUC__)
+#if defined(__GNUC__) || defined(__clang__)
#define UNUSED __attribute__((unused))
#else
#define UNUSED