mirror of
https://github.com/MariaDB/server.git
synced 2026-04-18 14:25:32 +02:00
Bug#45288: pb2 returns a lot of compilation warnings
Tag or remove unused arguments and variables. regex/main.c: Use the real prototype. sql/ha_ndbcluster.cc: Make conditions less ambiguous.
This commit is contained in:
parent
7406b38efa
commit
1040f98ccf
12 changed files with 72 additions and 49 deletions
|
|
@ -17,8 +17,8 @@ regoff_t startoff = 0;
|
|||
regoff_t endoff = 0;
|
||||
|
||||
|
||||
extern int split();
|
||||
extern void regprint();
|
||||
extern int split(char *string, char *fields[], int nfields, char *sep);
|
||||
extern void regprint(my_regex_t *r, FILE *d);
|
||||
|
||||
/*
|
||||
- main - do the simple case, hand off to regress() for regression
|
||||
|
|
@ -145,7 +145,7 @@ FILE *in;
|
|||
inbuf[strlen(inbuf)-1] = '\0'; /* get rid of stupid \n */
|
||||
if (debug)
|
||||
fprintf(stdout, "%d:\n", line);
|
||||
nf = split(inbuf, f, MAXF, "\t\t");
|
||||
nf = split(inbuf, f, MAXF, (char*) "\t\t");
|
||||
if (nf < 3) {
|
||||
fprintf(stderr, "bad input, line %d\n", line);
|
||||
exit(1);
|
||||
|
|
@ -288,7 +288,7 @@ int opts; /* may not match f1 */
|
|||
|
||||
for (i = 1; i < NSHOULD; i++)
|
||||
should[i] = NULL;
|
||||
nshould = split(f4, should+1, NSHOULD-1, ",");
|
||||
nshould = split(f4, should+1, NSHOULD-1, (char*) ",");
|
||||
if (nshould == 0) {
|
||||
nshould = 1;
|
||||
should[1] = (char*) "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue