[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] wrong warning flags for clang



On Sat, May 11, 2013 at 07:30:48PM +0400, Roman Bogorodskiy wrote:
> 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?

clang annoyingly just ignores unknown warning flags by default causing
our flag detection code to fail. I'm working on a fix for this.


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]