GNOME Bugzilla – Bug 583305
gtk_init_with_args() arguments should be const gchar*
Last modified: 2009-10-26 21:30:26 UTC
Please describe the problem: The translation_domain argument should be const gchar * to allow compilation with -Wwrite-strings. It only passes the argument to g_option_context_add_main_entries() which is already const gchar*. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information: See also bug #570367 and #565665 for similar problems.
Created attachment 135032 [details] [review] Make translation_domain const
Created attachment 135033 [details] [review] Same as previous patch but including header
Same goes for the "parameter_string" argument.
Created attachment 135407 [details] [review] Including parameter_string
Looks like the right thing to me.
given that we've been doing const-ification of parameters for quite some time, now, looks perfectly good to commit.
Comment on attachment 135407 [details] [review] Including parameter_string commit 92a68f4cf94f7615b5f0b2d16ec3c20b3775202b
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.