In plugins/demoproxy.c:

> +{
> +	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++);

fmt should be the string literal itself. the variable is not needed, and it prevents GCC from checking the format string.


Reply to this email directly or view it on GitHub.