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 640992 - Missed Return Type in gtk/gtkrange.c: gtk_range_set_round_digits
Missed Return Type in gtk/gtkrange.c: gtk_range_set_round_digits
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.24.x
Other Windows
: Normal major
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-01-31 03:28 UTC by Fan, Chun-wei
Modified: 2011-01-31 04:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Update to gtk/gtkrange.c (338 bytes, patch)
2011-01-31 03:28 UTC, Fan, Chun-wei
none Details | Review

Description Fan, Chun-wei 2011-01-31 03:28:27 UTC
Created attachment 179675 [details] [review]
Update to gtk/gtkrange.c

When I was trying to compile gtk+-2.24.0 with Visual C++ 2008, the compiler
threw an error in gtk/gtkrange.c for gtk_range_set_round_digits as the declaration of the function did not match the one in gtk/gtkrange.h, plus warnings/errors for the lack of a "return ..." call in that function.  It seems like the "void" keyword was missed in the .c file (which the function was marked as "void" in the .h file).

The fix I have here is quite trivial, so here it is-it just adds the "void" keyword for the function as well.

Thanks.