Enable -Wformat=2 if it's supported.

This commit is contained in:
Vladimir Serbinenko 2013-12-21 15:28:28 +01:00
parent bbac6789aa
commit ae558c2ccf
15 changed files with 57 additions and 1 deletions

View file

@ -326,6 +326,8 @@ get_default_platform (void)
#endif
}
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
static char *
help_filter (int key, const char *text, void *input __attribute__ ((unused)))
{
@ -342,6 +344,8 @@ help_filter (int key, const char *text, void *input __attribute__ ((unused)))
}
}
#pragma GCC diagnostic error "-Wformat-nonliteral"
/* TRANSLATORS: INSTALL_DEVICE isn't an identifier and is the DEVICE you
install to. */
struct argp argp = {