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 508488 - suncc does not range case for swith statement
suncc does not range case for swith statement
Status: RESOLVED FIXED
Product: gtk-vnc
Classification: Other
Component: general
0.3.x
Other All
: Normal major
: ---
Assigned To: gtk-vnc-maint
gtk-vnc-maint
Depends on:
Blocks:
 
 
Reported: 2008-01-10 11:10 UTC by Halton Huo
Modified: 2009-02-26 12:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for bug #508488 (3.79 KB, patch)
2008-01-10 11:13 UTC, Halton Huo
committed Details | Review

Description Halton Huo 2008-01-10 11:10:45 UTC
Please describe the problem:
Please describe the problem:
On solaris, I'm using suncc to compile gtk-vnc trunk code. it stops at building gvnc.c

"gvnc.c", line 1193: syntax error before or at: ...
"gvnc.c", line 1197: syntax error before or at: ...


Steps to reproduce:
1. 
2. 
3. 


Actual results:
build pass


Expected results:
build fail

Does this happen every time?
yes

Other information:
Comment 1 Halton Huo 2008-01-10 11:13:06 UTC
Created attachment 102510 [details] [review]
patch for bug #508488

Use if-else to replace those switch code. this is compatible for all compilers.
Comment 2 Halton Huo 2008-01-11 05:04:53 UTC
Close this bug as the patch is accepted by Anthony. committed in gtk-vnc trunk.
Comment 3 Jonh Wendell 2008-01-11 09:21:17 UTC
Thanks, Halton.