]> xenbits.xensource.com Git - libvirt.git/commit
build: Check for broken GCC -Wlogical-op in configure
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Fri, 14 Dec 2012 15:08:23 +0000 (16:08 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 17 Dec 2012 17:36:56 +0000 (17:36 +0000)
commit8b8fcdea6eb0459a2e873fa5e1b63bcdc7465a65
tree9a82646f99ffb51d46eff5a78b80f41e34ecdd0a
parent41bd91f8ad47c95f6062bb897e543b7fa187478e
build: Check for broken GCC -Wlogical-op in configure

Some older versions of GCC report a false positive on code like
  char * haystack, needle;
  strchr(haystack, needle);

Added an extra check in configure.ac which will
  #define BROKEN_GCC_WLOGICALOP 1
in this case, allowing to special handle "offending" code.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
configure.ac