After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 139903 - [patch] gog-xy.c doesn't compile with gcc 2.95
[patch] gog-xy.c doesn't compile with gcc 2.95
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Compilation
1.2.x
Other All
: High major
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2004-04-13 11:45 UTC by Adrian Bunk
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed fix (846 bytes, patch)
2004-04-13 11:47 UTC, Adrian Bunk
none Details | Review

Description Adrian Bunk 2004-04-13 11:45:37 UTC
I got the following compile error when trying to compile Gnumeric 1.2.10 with
gcc 2.95.3:

<--  snip  -->

...

-o .libs/gog-xy.o
gog-xy.c:523: warning: #warning what about small bubbles. With a very small radi
us, libart emits lot of warnings.
gog-xy.c:649: warning: #warning "move map into axis"
gog-xy.c: In function `gog_bubble_plot_class_init':
gog-xy.c:438: parse error before `*'
gog-xy.c:440: `gog_2d_plot_klass' undeclared (first use in this function)
gog-xy.c:440: (Each undeclared identifier is reported only once
gog-xy.c:440: for each function it appears in.)
make[7]: *** [gog-xy.lo] Error 1
make[7]: Leaving directory `/aux/adrian/build/gnumeric-1.2.10/src/cut-n-paste-co
de/goffice/graph/plugins/plot_xy'

<--  snip   -->

gcc 2.95 doesn't support declarations mixed with code.

I'll attach a patch in a minute.
Comment 1 Adrian Bunk 2004-04-13 11:47:28 UTC
Created attachment 26609 [details] [review]
proposed fix
Comment 2 Morten Welinder 2004-04-14 13:55:06 UTC
Applied (by hand).