Commit 903f6868 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

wrc: Fix symbol was not declared and using plain integer as NULL pointer sparse warnings.

parent 39b3a57b
...@@ -887,7 +887,7 @@ typedef struct resource_id_node ...@@ -887,7 +887,7 @@ typedef struct resource_id_node
struct resource_id_node *next; struct resource_id_node *next;
} resource_id_node_t; } resource_id_node_t;
struct static struct
{ {
int enabled; int enabled;
struct resource_id_node *ids; struct resource_id_node *ids;
......
...@@ -367,7 +367,7 @@ struct lang2cp ...@@ -367,7 +367,7 @@ struct lang2cp
unsigned short lang; unsigned short lang;
unsigned short sublang; unsigned short sublang;
unsigned int cp; unsigned int cp;
} lang2cp_t; };
/* language to codepage conversion table */ /* language to codepage conversion table */
/* specific sublanguages need only be specified if their codepage */ /* specific sublanguages need only be specified if their codepage */
......
...@@ -161,7 +161,7 @@ static int verify_translations_mode; ...@@ -161,7 +161,7 @@ static int verify_translations_mode;
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 */
char *temp_name = NULL; /* Temporary file for preprocess pipe */ static char *temp_name = NULL; /* Temporary file for preprocess pipe */
int line_number = 1; /* The current line */ int line_number = 1; /* The current line */
int char_number = 1; /* The current char pos within the line */ int char_number = 1; /* The current char pos within the line */
...@@ -193,27 +193,27 @@ enum long_options_values ...@@ -193,27 +193,27 @@ enum long_options_values
static const char short_options[] = static const char short_options[] =
"D:Ef:F:hi:I:J:l:o:O:rU:v"; "D:Ef:F:hi:I:J:l:o:O:rU:v";
static const struct option long_options[] = { static const struct option long_options[] = {
{ "debug", 1, 0, LONG_OPT_DEBUG }, { "debug", 1, NULL, LONG_OPT_DEBUG },
{ "define", 1, 0, 'D' }, { "define", 1, NULL, 'D' },
{ "endianess", 1, 0, LONG_OPT_ENDIANESS }, { "endianess", 1, NULL, LONG_OPT_ENDIANESS },
{ "help", 0, 0, 'h' }, { "help", 0, NULL, 'h' },
{ "include-dir", 1, 0, 'I' }, { "include-dir", 1, NULL, 'I' },
{ "input", 1, 0, 'i' }, { "input", 1, NULL, 'i' },
{ "input-format", 1, 0, 'J' }, { "input-format", 1, NULL, 'J' },
{ "language", 1, 0, 'l' }, { "language", 1, NULL, 'l' },
{ "no-use-temp-file", 0, 0, LONG_OPT_NOTMPFILE }, { "no-use-temp-file", 0, NULL, LONG_OPT_NOTMPFILE },
{ "nostdinc", 0, 0, LONG_OPT_NOSTDINC }, { "nostdinc", 0, NULL, LONG_OPT_NOSTDINC },
{ "output", 1, 0, 'o' }, { "output", 1, NULL, 'o' },
{ "output-format", 1, 0, 'O' }, { "output-format", 1, NULL, 'O' },
{ "pedantic", 0, 0, LONG_OPT_PEDANTIC }, { "pedantic", 0, NULL, LONG_OPT_PEDANTIC },
{ "preprocessor", 1, 0, LONG_OPT_PREPROCESSOR }, { "preprocessor", 1, NULL, LONG_OPT_PREPROCESSOR },
{ "target", 1, 0, 'F' }, { "target", 1, NULL, 'F' },
{ "undefine", 1, 0, 'U' }, { "undefine", 1, NULL, 'U' },
{ "use-temp-file", 0, 0, LONG_OPT_TMPFILE }, { "use-temp-file", 0, NULL, LONG_OPT_TMPFILE },
{ "verbose", 0, 0, 'v' }, { "verbose", 0, NULL, 'v' },
{ "verify-translations", 0, 0, LONG_OPT_VERIFY_TRANSL }, { "verify-translations", 0, NULL, LONG_OPT_VERIFY_TRANSL },
{ "version", 0, 0, LONG_OPT_VERSION }, { "version", 0, NULL, LONG_OPT_VERSION },
{ 0, 0, 0, 0 } { NULL, 0, NULL, 0 }
}; };
static void set_version_defines(void) static void set_version_defines(void)
...@@ -489,8 +489,8 @@ int main(int argc,char *argv[]) ...@@ -489,8 +489,8 @@ int main(int argc,char *argv[])
/* Kill io buffering when some kind of debuglevel is enabled */ /* Kill io buffering when some kind of debuglevel is enabled */
if(debuglevel) if(debuglevel)
{ {
setbuf(stdout,0); setbuf(stdout, NULL);
setbuf(stderr,0); setbuf(stderr, NULL);
} }
parser_debug = debuglevel & DEBUGLEVEL_TRACE ? 1 : 0; parser_debug = debuglevel & DEBUGLEVEL_TRACE ? 1 : 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment