sargon / trayer-srg

trayer fork with multi monitor support, cleaned up codebase and other fancy stuff
Other
223 stars 34 forks source link

Deprecation warnings -DG_DISABLE_DEPRECATED and -DGDK_DISABLE_DEPRECATED #3

Closed xmw closed 13 years ago

xmw commented 13 years ago

Please do not set -DG_DISABLE_DEPRECATED and -DGDK_DISABLE_DEPRECATED in Makefile.common, you run into following "implicit declarations" with x11-libs/gtk+-2.24.4:2

x86_64-pc-linux-gnu-gcc -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=core2 -mfpmath=sse -O2 -pipe -ggdb -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -Wall -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -c misc.c misc.c: In function ‘text_property_to_utf8’: misc.c:306:3: warning: implicit declaration of function ‘gdk_text_property_to_utf8_list’ x86_64-pc-linux-gnu-gcc -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=core2 -mfpmath=sse -O2 -pipe -ggdb -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -Wall -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -c bg.c bg.c: In function ‘modify_drawable’: bg.c:132:5: warning: implicit declaration of function ‘gdk_drawable_get_size’ bg.c:143:5: warning: implicit declaration of function ‘gdk_draw_pixbuf’

http://git.overlays.gentoo.org/gitweb/?p=dev/xmw.git;a=blob;f=x11-misc/trayer-srg/files/trayer-srg-1.1.2-cflags.patch;h=d9d56de2ef5c98b2ff917340ca4fa6e800edcdeb;hb=99bce18f66447dd744e3842af278c9d7b7a5dc39

--- trayer-srg-1.1.2/Makefile.common +++ trayer-srg-1.1.2/Makefile.common @@ -15,17 +15,16 @@ endif endif

-CC = gcc +CC ?= gcc LIBS = $(shell pkg-config --libs gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) -lX11 -L/usr/X11R6/lib -lXmu INCS = $(shell pkg-config --cflags gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) -CFLAGS = -O2 # overwriten by command line or env. variable -CFLAGS += -Wall # always nice to have +CFLAGS ?= -O2 -Wall ifneq (,$(DEVEL)) -CFLAGS := -g -Wall +CFLAGS ?= -g -Wall endif

-DGTK_DISABLE_DEPRECATED does not work yet

-CFLAGS += -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED +#CFLAGS += -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED

%.o: %.c $(CC) $(CFLAGS) $(INCS) -c $<