diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-02 05:36:52 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-02 05:36:52 -0500 |
commit | ede118ecbb53c2e903965a67d57f841ce4b8fc85 (patch) | |
tree | 7745f829818ce498bff74107f1fe1dcaa9f9f5c1 /compiler.h | |
parent | 6e201e5649554b80c003e2cb7753ac045a5c965a (diff) | |
download | gpsd-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |