wrong warning flags for clang

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

 



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

Attachment: pgpgR1GXElCEY.pgp
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]