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 352835 - Possible crashes caused by missing declaration
Possible crashes caused by missing declaration
Status: RESOLVED DUPLICATE of bug 351971
Product: GtkHtml
Classification: Other
Component: API
3.11.x
Other Linux
: Normal critical
: ---
Assigned To: gtkhtml-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2006-08-25 12:08 UTC by Laurent Goujon
Modified: 2006-08-26 15:18 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Fix the missing declarations (1.20 KB, patch)
2006-08-25 12:12 UTC, Laurent Goujon
none Details | Review

Description Laurent Goujon 2006-08-25 12:08:03 UTC
I detected several undeclared functions used by gtkhtml. Although gcc only warns about it, it might cause crashes on 64bits platforms because gcc assumes that the return value is an integer(32bits) but sometimes the return value is a pointer (64bits).

Here are the missing functions (extract from build log):

editor-control-factory.c:251: warning: implicit declaration of function 'gtk_html_filename_from_uri'
editor-control-factory.c:251: warning: assignment makes pointer from integer without a cast
image.c:396: warning: implicit declaration of function 'gtk_file_chooser_set_preview_active'

I searched for the function gtk_file_chooser_set_preview_active but didn't found it. I think the right name is gtk_file_chooser_set_preview_widget_active

I'll provide a patch to fix this bug
Comment 1 Laurent Goujon 2006-08-25 12:12:24 UTC
Created attachment 71590 [details] [review]
Fix the missing declarations
Comment 2 André Klapper 2006-08-26 15:18:37 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system and has already been fixed, but please feel free to report any further bugs you find. :-)


*** This bug has been marked as a duplicate of 351971 ***