mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* v4.5-rc1 : arch/x86/kernel/hw_breakpoint.c:360:20: warning: ‘align’ may be used uninitialized
@ 2016-01-26 19:29 Toralf Förster
  0 siblings, 0 replies; only message in thread
From: Toralf Förster @ 2016-01-26 19:29 UTC (permalink / raw)
  To: Linux Kernel

As a n00b I do wonder about he following warning:


  CC      arch/x86/kernel/hw_breakpoint.o
arch/x86/kernel/hw_breakpoint.c: In function ‘arch_validate_hwbkpt_settings’:
arch/x86/kernel/hw_breakpoint.c:360:20: warning: ‘align’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  if (info->address & align)
                    ^

at a 32 bit Gentoo KVM. Why isn't "align" set to some value in the "default:" branch of the switch above -or- why there is a "default:" there if it can't be reached ?

-- 
Toralf, pgp: C4EACDDE 0076E94E

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-26 19:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-26 19:29 v4.5-rc1 : arch/x86/kernel/hw_breakpoint.c:360:20: warning: ‘align’ may be used uninitialized Toralf Förster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome