r36590 - /desktop/unstable/gdk-pixbuf/debian/tests/build

mpitt at users.alioth.debian.org mpitt at users.alioth.debian.org
Wed Jan 16 12:38:56 UTC 2013


Author: mpitt
Date: Wed Jan 16 12:38:55 2013
New Revision: 36590

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=36590
Log:
debian/tests/build: Add -Wall -Werror for being more thorough, and do not call deprecated g_type_init() when building with glib >= 2.35

Modified:
    desktop/unstable/gdk-pixbuf/debian/tests/build

Modified: desktop/unstable/gdk-pixbuf/debian/tests/build
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gdk-pixbuf/debian/tests/build?rev=36590&op=diff
==============================================================================
--- desktop/unstable/gdk-pixbuf/debian/tests/build [utf-8] (original)
+++ desktop/unstable/gdk-pixbuf/debian/tests/build [utf-8] Wed Jan 16 12:38:55 2013
@@ -13,14 +13,16 @@
 #include <gdk-pixbuf/gdk-pixbuf.h>
 int main(){
 	GdkPixbuf *pixbuf = NULL;
+#if !defined(GLIB_VERSION_2_36)
 	g_type_init();
+#endif
 	pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, 50, 180);
 	if(!pixbuf) return 1;
 	return 0;
 }
 EOF
 
-gcc -o build_test build_test.c `pkg-config --cflags --libs gdk-pixbuf-2.0`
+gcc -o build_test build_test.c -Wall -Werror `pkg-config --cflags --libs gdk-pixbuf-2.0`
 echo "build: OK"
 [ -x build_test ]
 ./build_test




More information about the pkg-gnome-commits mailing list