On Wed, Oct 3, 2012 at 7:11 PM, phantomjinx <p.g.richardson@phantomjinx.co.uk> wrote:
"Brent S. Elmer Ph.D." <webe3vt@aim.com> wrote:
gtkpod fails to build in debian testing. It gives the following error:

clarity_cover.c:244:9: error: format not a string literal and no format
arguments [-Werror=format-security]

I fixed the problem like this:


// Set cover artwork
(GTK_CLUTTER_TEXTURE(priv->texture), item->albumart, &error);
if (error) {
+ g_warning("%s", error->message);
- g_warning(error->message);

After the fix gtkpod compiled.

Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!

Thanks. Little perplexed why that would be a compile error ...

Because if a user manages to sneak a %-printf code in the error message he might get a crash at best, or the system could be compromised at worst. In any case the result is not defined.