mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 18:37:19 +00:00
winegcc: Fix an uninitialized variable warning in the PE build.
This commit is contained in:
parent
cc2cfb9b79
commit
834f7b2366
|
@ -305,24 +305,18 @@ static struct strarray build_tool_name( struct options *opts, enum tool tool )
|
||||||
|
|
||||||
static struct strarray get_translator(struct options *opts)
|
static struct strarray get_translator(struct options *opts)
|
||||||
{
|
{
|
||||||
enum tool tool;
|
|
||||||
|
|
||||||
switch(opts->processor)
|
switch(opts->processor)
|
||||||
{
|
{
|
||||||
case proc_cpp:
|
case proc_cpp:
|
||||||
tool = TOOL_CPP;
|
return build_tool_name( opts, TOOL_CPP );
|
||||||
break;
|
|
||||||
case proc_cc:
|
case proc_cc:
|
||||||
case proc_as:
|
case proc_as:
|
||||||
tool = TOOL_CC;
|
return build_tool_name( opts, TOOL_CC );
|
||||||
break;
|
|
||||||
case proc_cxx:
|
case proc_cxx:
|
||||||
tool = TOOL_CXX;
|
return build_tool_name( opts, TOOL_CXX );
|
||||||
break;
|
|
||||||
default:
|
|
||||||
assert(0);
|
|
||||||
}
|
}
|
||||||
return build_tool_name( opts, tool );
|
assert(0);
|
||||||
|
return empty_strarray;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int try_link( struct strarray prefix, struct strarray link_tool, const char *cflags )
|
static int try_link( struct strarray prefix, struct strarray link_tool, const char *cflags )
|
||||||
|
|
Loading…
Reference in a new issue