wmc: Fix symbol was not declared and using plain integer as NULL pointer sparse warnings.
This commit is contained in:
parent
c3af2dd752
commit
e4ff90cc4d
|
@ -101,7 +101,7 @@ int rcinline = 0;
|
||||||
/*
|
/*
|
||||||
* Debugging flag (-D option)
|
* Debugging flag (-D option)
|
||||||
*/
|
*/
|
||||||
int dodebug = 0;
|
static int dodebug = 0;
|
||||||
|
|
||||||
char *output_name = NULL; /* The name given by the -o option */
|
char *output_name = NULL; /* The name given by the -o option */
|
||||||
char *input_name = NULL; /* The name given on the command-line */
|
char *input_name = NULL; /* The name given on the command-line */
|
||||||
|
@ -115,6 +115,8 @@ time_t now; /* The time of start of wmc */
|
||||||
|
|
||||||
int mcy_debug;
|
int mcy_debug;
|
||||||
|
|
||||||
|
FILE *yyin;
|
||||||
|
|
||||||
int getopt (int argc, char *const *argv, const char *optstring);
|
int getopt (int argc, char *const *argv, const char *optstring);
|
||||||
static void segvhandler(int sig);
|
static void segvhandler(int sig);
|
||||||
|
|
||||||
|
@ -242,8 +244,8 @@ int main(int argc,char *argv[])
|
||||||
mcy_debug = dodebug;
|
mcy_debug = dodebug;
|
||||||
if(dodebug)
|
if(dodebug)
|
||||||
{
|
{
|
||||||
setbuf(stdout, 0);
|
setbuf(stdout, NULL);
|
||||||
setbuf(stderr, 0);
|
setbuf(stderr, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for input file on command-line */
|
/* Check for input file on command-line */
|
||||||
|
|
|
@ -65,7 +65,7 @@ extern node_t *nodehead;
|
||||||
extern lan_blk_t *lanblockhead;
|
extern lan_blk_t *lanblockhead;
|
||||||
|
|
||||||
int mcy_lex(void);
|
int mcy_lex(void);
|
||||||
FILE *yyin;
|
extern FILE *yyin;
|
||||||
void set_codepage(int cp);
|
void set_codepage(int cp);
|
||||||
|
|
||||||
void add_token(tok_e type, const WCHAR *name, int tok, int cp, const WCHAR *alias, int fix);
|
void add_token(tok_e type, const WCHAR *name, int tok, int cp, const WCHAR *alias, int fix);
|
||||||
|
|
Loading…
Reference in New Issue