diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2013-05-13 12:41:07 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2013-05-14 15:00:22 +0100 |
commit | c43b685a1d3d1742a4db98950f5947c44143343f (patch) | |
tree | 3284e21b01d5f5a8fdad57310161f0ecf7bd561e /src/internal.h | |
parent | 5fd6ae3f2ead3c626dc2f5beff4190effac037cd (diff) | |
download | libvirt-c43b685a1d3d1742a4db98950f5947c44143343f.tar.gz |
Ensure consistent enablement of gcc 'diagnostic' pragma
The virt-compile-warnings.m4 file would do an explicit
check for whether the compile could use the 'diagnostic'
pragma push/pop feature. The src/internal.h file would
then only enable it for GCC >= 4.6
This breaks with clang which supports the pragma but
does not claim GCC 4.6 compat. Export a variable from
the m4 check to the header file so they are consistent.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'src/internal.h')
-rw-r--r-- | src/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal.h b/src/internal.h index d819aa39a2..03c2493c7d 100644 --- a/src/internal.h +++ b/src/internal.h @@ -215,7 +215,7 @@ # endif /* __GNUC__ */ -# if __GNUC_PREREQ (4, 6) +# if WORKING_PRAGMA_PUSH # define VIR_WARNINGS_NO_CAST_ALIGN \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wcast-align\"") |