]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Correctly detect warning flags with clang
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 13 May 2013 11:45:54 +0000 (12:45 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 14 May 2013 14:00:22 +0000 (15:00 +0100)
commitc1634100447b4afc936bb19f2e21e6d68b7c4e3a
treee9e566d0dd94f433b22dff707a8febcddf90453f
parent7d73b11427c96b8c606850a7564b376e25020cd8
Correctly detect warning flags with clang

Clang will happily claim to support any warning flags
unless the -Werror and -Wunknown-warning-option flags
are set. Thus we need to make sure these are set when
testing for clags.

We must also set the clang specific warning flags
-Wno-unused-command-line-argument to avoid a warning
from the ssp-buffer-size flag when linking .o files.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
m4/virt-compile-warnings.m4