Commit 6fd46ff2 authored by Simon Budig's avatar Simon Budig Committed by Simon Budig

workaround to avoid a warning by gcc about the use of "%c" in the format

2004-08-28  Simon Budig  <simon@gimp.org>

	* plug-ins/common/plugindetails.c: workaround to avoid a warning
	by gcc about the use of "%c" in the format string.
parent 907a2760
2004-08-28 Simon Budig <simon@gimp.org>
* plug-ins/common/plugindetails.c: workaround to avoid a warning
by gcc about the use of "%c" in the format string.
2004-08-28 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpwidgets.[ch]: applied a patch from Joao
......
......@@ -813,10 +813,11 @@ get_plugin_info (PDesc *pdesc,
tx = time_ints[loop];
if (tx)
{
const gchar *format = "%c"; /* gcc workaround to avoid warning */
gchar *utf8;
x = localtime (&tx);
ret = strftime (xtimestr, sizeof (xtimestr), "%c", x);
ret = strftime (xtimestr, sizeof (xtimestr), format, x);
xtimestr[ret] = 0;
if ((utf8 = g_locale_to_utf8 (xtimestr, -1, NULL, NULL, NULL)))
......
......@@ -813,10 +813,11 @@ get_plugin_info (PDesc *pdesc,
tx = time_ints[loop];
if (tx)
{
const gchar *format = "%c"; /* gcc workaround to avoid warning */
gchar *utf8;
x = localtime (&tx);
ret = strftime (xtimestr, sizeof (xtimestr), "%c", x);
ret = strftime (xtimestr, sizeof (xtimestr), format, x);
xtimestr[ret] = 0;
if ((utf8 = g_locale_to_utf8 (xtimestr, -1, NULL, NULL, NULL)))
......
......@@ -813,10 +813,11 @@ get_plugin_info (PDesc *pdesc,
tx = time_ints[loop];
if (tx)
{
const gchar *format = "%c"; /* gcc workaround to avoid warning */
gchar *utf8;
x = localtime (&tx);
ret = strftime (xtimestr, sizeof (xtimestr), "%c", x);
ret = strftime (xtimestr, sizeof (xtimestr), format, x);
xtimestr[ret] = 0;
if ((utf8 = g_locale_to_utf8 (xtimestr, -1, NULL, NULL, NULL)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment