Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 386759 - GTK_DISABLE_DEPRECATED produce old warnings
Summary: GTK_DISABLE_DEPRECATED produce old warnings
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.3 M2   Edit
Assignee: Arun Thondapu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2012-08-07 12:01 EDT by Anatoly Spektor CLA
Modified: 2013-05-24 09:34 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anatoly Spektor CLA 2012-08-07 12:01:41 EDT
After resetting my master to current Eclipse's master,

I've started getting these warnings:

gcc -O -Wall -DSWT_VERSION=4301  -DLINUX -DGTK -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -fPIC  `pkg-config --cflags gtk+-2.0` -c os.c
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS__1GTK_1WIDGET_1STATE’:
os.c:1692:2: warning: implicit declaration of function ‘GTK_WIDGET_STATE’ [-Wimplicit-function-declaration]
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS__1gtk_1fixed_1set_1has_1window’:
os.c:9160:2: warning: implicit declaration of function ‘gtk_fixed_set_has_window’ [-Wimplicit-function-declaration]
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS__1gtk_1object_1sink’:
os.c:10390:2: warning: implicit declaration of function ‘gtk_object_sink’ [-Wimplicit-function-declaration]
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS__1gtk_1tooltips_1new’:
os.c:13835:2: warning: implicit declaration of function ‘gtk_tooltips_new’ [-Wimplicit-function-declaration]


Solution:

 I forced os.c to regenerate (I did it by putting new line in OS.java) and warnings are gone.

 Please regenerate os.c and  push it to master.

Regards,

Anatoly
Comment 1 Arun Thondapu CLA 2012-08-07 14:22:46 EDT
Sorry, this is most likely caused by my mistake, I pushed some wrong os.c changes with the patch for bug 386145.

Regenerated os.c and pushed it - http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=c54e37d49f03d2ce2796165cf58ab76d1511b7f5

Thanks for the bug!