Enable -Wformat=2 if it's supported.
This commit is contained in:
parent
bbac6789aa
commit
ae558c2ccf
15 changed files with 57 additions and 1 deletions
|
@ -94,6 +94,8 @@ static struct argp_option options[] = {
|
|||
{ 0, 0, 0, 0, 0, 0 }
|
||||
};
|
||||
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
|
||||
static char *
|
||||
help_filter (int key, const char *text, void *input __attribute__ ((unused)))
|
||||
{
|
||||
|
@ -116,6 +118,8 @@ help_filter (int key, const char *text, void *input __attribute__ ((unused)))
|
|||
}
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic error "-Wformat-nonliteral"
|
||||
|
||||
struct arguments
|
||||
{
|
||||
char *boot_file;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue