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 605090 - Fix some compilation warnings
Fix some compilation warnings
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
2.19.x
Other All
: Normal trivial
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-12-20 20:19 UTC by Javier Jardón (IRC: jjardon)
Modified: 2010-01-04 15:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use G_GSIZE_FORMAT instead of %d (1.18 KB, patch)
2009-12-20 20:20 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review
Cast to GTK_WIDGET() (1.48 KB, patch)
2009-12-20 20:20 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review
cast to GTK_WIDGET() (1.21 KB, patch)
2009-12-21 03:07 UTC, Javier Jardón (IRC: jjardon)
none Details | Review
cast to GTK_WIDGET() problem: use new variable (1.79 KB, patch)
2009-12-21 03:08 UTC, Javier Jardón (IRC: jjardon)
none Details | Review
Use G_GSIZE_FORMAT instead of %i (1.07 KB, patch)
2009-12-21 03:09 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review
Use G_GSIZE_FORMAT instead of %d (1.18 KB, patch)
2009-12-21 19:07 UTC, Javier Jardón (IRC: jjardon)
rejected Details | Review
Use const gchar instead gchar (663 bytes, patch)
2010-01-04 10:06 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review

Description Javier Jardón (IRC: jjardon) 2009-12-20 20:19:25 UTC
Some compilation warning were introduced. Here some patches to fix them
Comment 1 Javier Jardón (IRC: jjardon) 2009-12-20 20:20:32 UTC
Created attachment 150127 [details] [review]
Use G_GSIZE_FORMAT instead of %d
Comment 2 Javier Jardón (IRC: jjardon) 2009-12-20 20:20:57 UTC
Created attachment 150128 [details] [review]
Cast to GTK_WIDGET()
Comment 3 Javier Jardón (IRC: jjardon) 2009-12-20 23:41:35 UTC
Comment on attachment 150127 [details] [review]
Use G_GSIZE_FORMAT instead of %d

commit 479c7b047648119f6fb0cf754fdbd3b08acc211e
Comment 4 Javier Jardón (IRC: jjardon) 2009-12-20 23:41:58 UTC
Comment on attachment 150128 [details] [review]
Cast to GTK_WIDGET()

commit 134a8ffa194d32843677f89a2424d2b35c1070ca
Comment 5 Javier Jardón (IRC: jjardon) 2009-12-20 23:42:18 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release.
Comment 6 Javier Jardón (IRC: jjardon) 2009-12-21 03:06:41 UTC
Sorry Ben, more warnings comming ;)
Comment 7 Javier Jardón (IRC: jjardon) 2009-12-21 03:07:52 UTC
Created attachment 150148 [details] [review]
cast to GTK_WIDGET()
Comment 8 Javier Jardón (IRC: jjardon) 2009-12-21 03:08:32 UTC
Created attachment 150149 [details] [review]
cast to GTK_WIDGET() problem: use new variable
Comment 9 Javier Jardón (IRC: jjardon) 2009-12-21 03:09:22 UTC
Created attachment 150150 [details] [review]
Use G_GSIZE_FORMAT instead of %i
Comment 10 Javier Jardón (IRC: jjardon) 2009-12-21 03:10:20 UTC
I really think we should use -Werror by default ;)
Comment 11 Javier Jardón (IRC: jjardon) 2009-12-21 19:07:37 UTC
Created attachment 150190 [details] [review]
Use G_GSIZE_FORMAT instead of %d
Comment 12 Javier Jardón (IRC: jjardon) 2010-01-04 08:41:42 UTC
Comment on attachment 150149 [details] [review]
cast to GTK_WIDGET() problem: use new variable

Obsolete by commit 3a9633a9de67f0272e120c8e4540f27e4b52712f
Comment 13 Javier Jardón (IRC: jjardon) 2010-01-04 08:43:22 UTC
Comment on attachment 150148 [details] [review]
cast to GTK_WIDGET()

Obsolete by commit ac26960e62346558737073ac516790005d7c64ad
Comment 14 Benjamin Otte (Company) 2010-01-04 09:36:35 UTC
Comment on attachment 150190 [details] [review]
Use G_GSIZE_FORMAT instead of %d

In fact, this error is only triggered for 0 <= icc_profile_size < 127, so casting to int as a recent patch does is fine.
Comment 15 Javier Jardón (IRC: jjardon) 2010-01-04 09:47:01 UTC
Comment on attachment 150150 [details] [review]
Use G_GSIZE_FORMAT instead of %i

commit c1cddb2b24014abb50633fe7081b8ad94d111508
Comment 16 Javier Jardón (IRC: jjardon) 2010-01-04 10:06:34 UTC
Created attachment 150770 [details] [review]
Use const gchar instead gchar
Comment 17 Benjamin Otte (Company) 2010-01-04 10:12:53 UTC
Comment on attachment 150770 [details] [review]
Use const gchar instead gchar

Please make the next_src variable inside the loop const, too.
Comment 18 Javier Jardón (IRC: jjardon) 2010-01-04 10:27:00 UTC
(In reply to comment #17)
> (From update of attachment 150770 [details] [review])
> Please make the next_src variable inside the loop const, too.

I'd like to ask what the reason for this: g_utf8_next_char() returns a char*
Comment 19 Benjamin Otte (Company) 2010-01-04 10:37:33 UTC
Good question.
git logs don't show anything about it either. Someone should probably file a bug about it.
Comment 20 Javier Jardón (IRC: jjardon) 2010-01-04 10:49:51 UTC
Comment on attachment 150770 [details] [review]
Use const gchar instead gchar

commit aa63be61d9082f50523c3c2c796d5a8318673cfe
Comment 21 Javier Jardón (IRC: jjardon) 2010-01-04 15:54:35 UTC
Closing as the new warnings are now gone, thank you Company for the reviews