[libvirt] wrong warning flags for clang

Roman Bogorodskiy bogorodskiy at gmail.com
Sat May 11 15:30:48 UTC 2013


Appears that configure doesn't properly detect the case when clang is
used instead of gcc:

CC=clang ./configure runs fine, but produces a long list of warning
flags that clang doesn't support:

configure:     Warning Flags:  -W -Waddress -Wall -Warray-bounds
-Wattributes -Wbad-function-cast ... trimmed ...

At some point, compilation fails:

  CC       libvirt_util_la-viralloc.lo
clang: error: unknown warning option '-Wclobbered' [-Werror,-Wunknown-warning-option]
clang: error: unknown warning option '-Wcoverage-mismatch'; did you mean '-Wpointer-type-mismatch'? [-Werror,-Wunknown-warning-option]

and many other similar errors.

Any idea what would be a proper fix for that?

Roman Bogorodskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130511/9d274151/attachment-0001.sig>


More information about the libvir-list mailing list