Fix FTBFS due to unnamed unused arguments in C sources in a recent commit.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/105/head
Slávek Banko 4 years ago
parent 2bab107ef5
commit 1b2d3b15f4
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -280,7 +280,7 @@ int getMaticPrinterInfos(const char *base, const char *id, char *make, char *mod
return 1;
}
int parseMaticFile(const char *driver, const char * /*origin*/, const char * /*metadata*/, FILE *output)
int parseMaticFile(const char *driver, const char * UNUSED(origin), const char * UNUSED(metadata), FILE *output)
{
FILE *drFile;
char name[32] = {0},

@ -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[]);

@ -47,7 +47,7 @@ void simplifyModel(const char *modelname)
}
}
int parseApsFile(const char *filename, const char * /*origin*/, const char * /*metadata*/, FILE *output)
int parseApsFile(const char *filename, const char * UNUSED(origin), const char * UNUSED(metadata), FILE *output)
{
FILE *apsfile;
char buf[256], modelname[256];
@ -127,7 +127,7 @@ char* nextWord(char *c)
return d;
}
int parseIfhpFile(const char *filename, const char * /*origin*/, const char * /*metadata*/, FILE *output)
int parseIfhpFile(const char *filename, const char * UNUSED(origin), const char * UNUSED(metadata), FILE *output)
{
char buf[1024];
FILE *in;

Loading…
Cancel
Save