diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-03-14 12:24:35 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-03-14 12:25:47 +0000 |
commit | 04e8187a81e806cf6c2ff820cf9838fa96869fb7 (patch) | |
tree | a47bdb49e1207098550a8d7d80d6142890cd4aae /m4 | |
parent | 69406f7330d9fd0b36a2aefd479636cc8738127c (diff) | |
download | spice-gtk-04e8187a81e806cf6c2ff820cf9838fa96869fb7.tar.gz spice-gtk-04e8187a81e806cf6c2ff820cf9838fa96869fb7.tar.xz spice-gtk-04e8187a81e806cf6c2ff820cf9838fa96869fb7.zip |
Disable -Wwrite-strings for Python binding
The code generator for the python binding generates code which
throws away const-ness on strings. Disable the -Wwrite-strings
warning to avoid failing on this auto-generated code.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/spice-compile-warnings.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/spice-compile-warnings.m4 b/m4/spice-compile-warnings.m4 index 214449f..b98e2ef 100644 --- a/m4/spice-compile-warnings.m4 +++ b/m4/spice-compile-warnings.m4 @@ -137,4 +137,8 @@ AC_DEFUN([SPICE_COMPILE_WARNINGS],[ WARN_LDFLAGS=$WARN_CFLAGS AC_SUBST([WARN_CFLAGS]) AC_SUBST([WARN_LDFLAGS]) + + gl_WARN_ADD([-Wno-write-strings]) + WARN_PYFLAGS=$WARN_CFLAGS + AC_SUBST([WARN_PYFLAGS]) ]) |