Commit f0592355 authored by Pavel Emelyanov's avatar Pavel Emelyanov

x86: Fix compiler warning

arch/x86/crtools.c: In function ‘arch_alloc_thread_info’:
arch/x86/crtools.c:271:6: error: ‘with_xsave’ may be used uninitialized in this function [-Werror=uninitialized]

Actually the with_xsave is with_fpu dependant, but some gccs
can't guess that fact :\
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent adf06b94
......@@ -228,7 +228,7 @@ err:
int arch_alloc_thread_info(CoreEntry *core)
{
size_t sz;
bool with_fpu, with_xsave;
bool with_fpu, with_xsave = false;
void *m;
ThreadInfoX86 *ti = NULL;
......
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