summaryrefslogtreecommitdiffstats
path: root/tdeprint/driverparse.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-08-12 20:36:42 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-08-12 20:38:25 +0200
commit1b2d3b15f4c84dc00c39376cfe892de2979f9d66 (patch)
treef946689e72e181dd8276b2c59a3bbf8e4ddcaea5 /tdeprint/driverparse.h
parent2bab107ef59aa6563fa0a788de160e3bf44fd393 (diff)
downloadtdelibs-1b2d3b15f4c84dc00c39376cfe892de2979f9d66.tar.gz
tdelibs-1b2d3b15f4c84dc00c39376cfe892de2979f9d66.zip
Fix FTBFS due to unnamed unused arguments in C sources in a recent commit.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdeprint/driverparse.h')
-rw-r--r--tdeprint/driverparse.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tdeprint/driverparse.h b/tdeprint/driverparse.h
index 32c997f8c..68fb18078 100644
--- a/tdeprint/driverparse.h
+++ b/tdeprint/driverparse.h
@@ -23,6 +23,14 @@
#include <stdio.h>
+#if !defined(UNUSED)
+# if defined(__GNUC__) && ( __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) )
+# define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
+# else
+# define UNUSED(x) UNUSED_ ## x
+# endif
+#endif
+
void registerHandler(const char *name, void(*initf)(const char*), int(*parsef)(const char*, const char*, const char*, FILE*));
void initFoomatic(void);
int execute(int argc, char *argv[]);