Re: [PATCHv3 1/3] build: Check for broken GCC -Wlogical-op in configure

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

 



On 12/18/2012 09:38 PM, Eric Blake wrote:

I know this is already pushed, but I think it would fit better under
m4/virt-compile-warnings.m4 rather than at the top-level configure.ac.

since it is early in the release it's not too late to change this,
although I think - if not in configure.ac - it would rather belong
to a separate m4/workarounds.m4 or similar ...
Potential ouch.  This sets BROKEN_GCC_WLOGICALOP to 1 on all non-gcc
compilers.  Then in patch 2/3, you blindly use this condition to request
a pragma:
Really? My expectation is that only a GCC compiler will trigger this
condition unless there are other compilers producing a compile error
with strchr(x,y).
In consequence it is fair to use a GCC pragma, especially as the
diagnostic pragma is applicable for the failing GCC versions (according
to the GCC manuals).

--

Mit freundlichen Grüßen/Kind Regards
   Viktor Mihajlovski

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martina Köderitz
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

--
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]