]> Pileus Git - ~andy/gtk/commitdiff
Allow building with CFLAGS=-Werror
authorStef Walter <stef@memberwebs.com>
Fri, 10 Aug 2012 18:12:39 +0000 (03:12 +0900)
committerJavier Jardón <jjardon@gnome.org>
Fri, 10 Aug 2012 18:12:39 +0000 (03:12 +0900)
Allow building using:

$ CFLAGS=-Werror sh autogen.sh --prefix=/xxx

configure.ac

index 6fea3afcc830ea4471b7e1e4a87b61825507ff01..41e24a392874ea98b91453942dab24de6b19b00e 100644 (file)
@@ -987,11 +987,13 @@ if test "x$enable_x11_backend" = xyes; then
 
   AC_MSG_CHECKING([if <X11/extensions/XIproto.h> is needed for xReply])
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlibint.h>]],
-                                     [[xReply *rep;]])],
+                                     [[xReply *rep = NULL;
+                                       rep = rep;]])],
                     [AC_MSG_RESULT([no])],
                     [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/extensions/XIproto.h>
                                                           #include <X11/Xlibint.h>]],
-                                                        [[xReply *rep;]])],
+                                                        [[xReply *rep = NULL;
+                                                          rep = rep;]])],
                                        [AC_MSG_RESULT([yes])
                                         AC_DEFINE([NEED_XIPROTO_H_FOR_XREPLY], [1],
                                                   [Define if <X11/extensions/XIproto.h> needed for xReply])],