compile error r18884
Herbert Thoma
herbert.thoma at iis.fraunhofer.de
Wed Mar 10 10:24:11 EST 2010
Hi!
With latest trunk I get a complie error:
cc1: warnings being treated as errors
gnc-main-window.c: In function ‘main_window_update_page_name’:
gnc-main-window.c:1928: error: implicit declaration of function ‘g_strstr’
gnc-main-window.c:1928: error: comparison between pointer and integer
make[5]: *** [gnc-main-window.lo] Fehler 1
make[5]: Leaving directory `/home/tma/gnucash/gnucash_cvs/gnucash_work/src/gnome-utils'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory `/home/tma/gnucash/gnucash_cvs/gnucash_work/src/gnome-utils'
It seems that my glib does not have g_strstr but only g_strstr_len
The following trivial patch seems to fix my problem:
Index: src/gnome-utils/gnc-main-window.c
===================================================================
--- src/gnome-utils/gnc-main-window.c (Revision 18884)
+++ src/gnome-utils/gnc-main-window.c (Arbeitskopie)
@@ -1924,7 +1924,7 @@
/* Update Tooltip on notebook Tab */
main_window_find_tab_event(window, page, &event_box);
- if (g_strstr(old_page_long_name,old_page_name) != NULL)
+ if (g_strstr_len(old_page_long_name,-1,old_page_name) != NULL)
{
gchar *new_page_long_name;
gint string_position;
--
Herbert Thoma
Dipl.-Ing., MBA
Head of Video Group
Multimedia Realtime Systems Department
Fraunhofer IIS
Am Wolfsmantel 33, 91058 Erlangen, Germany
Phone: +49-9131-776-6130
Fax: +49-9131-776-6099
email: tma at iis.fhg.de
www: http://www.iis.fhg.de/
More information about the gnucash-devel
mailing list