diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2009-07-06 23:07:02 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2009-07-06 23:07:02 +0000 |
commit | fe26002132600c1c69e720f79665cf192a0f35ac (patch) | |
tree | 6ec13db4db3f475765da4146bf3a6220f0464872 /gps.h | |
parent | f19c2f1458798bfa2e1a1c1678e067e1327396a3 (diff) | |
download | gpsd-fe26002132600c1c69e720f79665cf192a0f35ac.tar.gz |
actually, UNUSED is better for our purposes in gps.h
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -8,6 +8,14 @@ extern "C" { #endif +/* Macro for declaring function arguments unused. */ +#if defined(__GNUC__) +# define UNUSED __attribute__((unused)) /* Flag variable as unused */ +#else /* not __GNUC__ */ +# define UNUSED +#endif + + #include <sys/types.h> #include <sys/time.h> #include <stdbool.h> |