summaryrefslogtreecommitdiff
path: root/soltools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-26 09:04:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-26 10:11:04 +0100
commit313a0efb1d703a36030a7e5e55bd308c7e4650f3 (patch)
tree1dd5b36bc5aeab0c180c03208fe067fc480a371f /soltools
parent7fcdc7efe836f9ca71f80d3178a2578b63fb3fd8 (diff)
file param is used in DEBUG mode
regression from commit 4c19552052083b9b10d581f1a93f6ddecf241bcd remove some unused enum values and defines in soltools Change-Id: I897a75a65ab31068dbb9c51b111c81ab848506c9 Reviewed-on: https://gerrit.libreoffice.org/64018 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'soltools')
-rw-r--r--soltools/mkdepend/parse.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/soltools/mkdepend/parse.c b/soltools/mkdepend/parse.c
index 7a8e4f96e2ac..a25fd9cd2bcd 100644
--- a/soltools/mkdepend/parse.c
+++ b/soltools/mkdepend/parse.c
@@ -33,7 +33,7 @@ in this Software without prior written authorization from the X Consortium.
static char *hash_lookup( char *symbol, struct symhash *symbols );
static int gobble( struct filepointer *filep, struct inclist *file,
struct inclist *file_red, struct symhash *symbols );
-static int deftype ( char *line, struct filepointer *filep,
+static int deftype ( char *line, struct filepointer *filep, struct inclist *file,
int parse_it, struct symhash *symbols);
static int zero_value(char const *exp, struct symhash *symbols);
@@ -45,7 +45,7 @@ int find_includes(struct filepointer *filep, struct inclist *file, struct inclis
int type;
while ((line = get_line(filep))) {
- type = deftype(line, filep, TRUE, symbols);
+ type = deftype(line, filep, file, TRUE, symbols);
switch(type) {
case IF:
doif:
@@ -106,7 +106,7 @@ int gobble(struct filepointer *filep,
int type;
while ((line = get_line(filep))) {
- type = deftype(line, filep, FALSE, symbols);
+ type = deftype(line, filep, file, FALSE, symbols);
switch(type) {
case IF:
case IFFALSE:
@@ -133,11 +133,13 @@ int gobble(struct filepointer *filep,
/*
* Decide what type of # directive this line is.
*/
-int deftype (char *line, struct filepointer *filep, int parse_it, struct symhash *symbols)
+int deftype (char *line, struct filepointer *filep, struct inclist * file,
+ int parse_it, struct symhash *symbols)
{
char *p;
char *directive, savechar;
int ret;
+ (void)file; // used in DEBUG mode
(void)filep;
/*
* Parse the directive...