Comment 12 for bug 740815

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Note that turning on -Wall in swt-gtk exposed the error causing my problem in comment #1:

cc -Wall -DSWT_VERSION=3659 -DLINUX -DGTK -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -fPIC -DJNI64 `pkg-config --cflags gtk+-2.0 webkit-1.0` -c webkitgtk.c -o webkit.o
webkitgtk.c: In function ‘Java_org_eclipse_swt_internal_webkit_WebKitGTK__1webkit_1get_1default_1session’:
webkitgtk.c:775:2: warning: implicit declaration of function ‘webkit_get_default_session’

The compiler is just assuming that an int is being returned. I guess I should have tried that before