Mailing List Archive

[PATCH] blktap: Fix unused warnings in block-qcow2.c
Kevin Wolf schrieb:
> Shouldn't -Wno-unused disable the check rather than enabling it?
> Removing it causes even more warnings. Maturi's compiler just seems to
> ignore that switch.

I see, it's the -D_FORTIFY_SOURCE=2 which causes the warnings. This is
not enabled in the standard xen-unstable Makefiles, so we could not
reproduce it.

The fix is trivial: These warning are all in functions which are used
only by qemu, but not by blktap. Just drop them.

Kevin

Signed-off-by: Kevin Wolf <kwolf@suse.de>