summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-07-06 23:07:02 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-07-06 23:07:02 +0000
commitfe26002132600c1c69e720f79665cf192a0f35ac (patch)
tree6ec13db4db3f475765da4146bf3a6220f0464872 /gps.h
parentf19c2f1458798bfa2e1a1c1678e067e1327396a3 (diff)
downloadgpsd-fe26002132600c1c69e720f79665cf192a0f35ac.tar.gz
actually, UNUSED is better for our purposes in gps.h
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gps.h b/gps.h
index d3bdb2fe..ba4034a7 100644
--- a/gps.h
+++ b/gps.h
@@ -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>