<p>In <a href="https://github.com/geany/geany/pull/629#discussion_r41062535">plugins/demoproxy.c</a>:</p>
<pre style='color:#555'>> +{
> + PluginContext *data;
> + gchar fmt[] = "item%d";
> + gint i = 0;
> + gchar *text;
> +
> + data = (PluginContext *) pdata;
> +
> + /* Normally, you would instruct the VM/interpreter to call into the actual plugin. The
> + * plugin would be identified by pdata. Because there is no interpreter for
> + * .ini files we do it inline, as this is just a demo */
> + data->help_text = g_key_file_get_locale_string(data->file, "Help", "text", NULL, NULL);
> + while (TRUE)
> + {
> + GtkWidget *item;
> + gchar *key = g_strdup_printf(fmt, i++);
</pre>
<p><code>fmt</code> should be the string literal itself. the variable is not needed, and it prevents GCC from checking the format string.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/629/files#r41062535">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJyYUwQ2Du6hvjpQGVP569OABuU8Rks5o3txlgaJpZM4Fy7fG.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/geany/geany/pull/629/files#r41062535"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>