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
|
@ -87,6 +87,8 @@ static error_t argp_parser (int key, char *arg, struct argp_state *state)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
|
||||
static char *
|
||||
help_filter (int key, const char *text, void *input __attribute__ ((unused)))
|
||||
{
|
||||
|
@ -100,6 +102,8 @@ help_filter (int key, const char *text, void *input __attribute__ ((unused)))
|
|||
}
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic error "-Wformat-nonliteral"
|
||||
|
||||
struct argp argp = {
|
||||
options, argp_parser, N_("FILENAME COMMAND"),
|
||||
"\n"N_("\
|
||||
|
|
|
@ -45,6 +45,8 @@
|
|||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
|
||||
char *
|
||||
grub_install_help_filter (int key, const char *text,
|
||||
void *input __attribute__ ((unused)))
|
||||
|
@ -67,6 +69,8 @@ grub_install_help_filter (int key, const char *text,
|
|||
}
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic error "-Wformat-nonliteral"
|
||||
|
||||
static int (*compress_func) (const char *src, const char *dest) = NULL;
|
||||
char *grub_install_copy_buffer;
|
||||
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -78,6 +78,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)))
|
||||
{
|
||||
|
@ -100,6 +102,8 @@ help_filter (int key, const char *text, void *input __attribute__ ((unused)))
|
|||
}
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic error "-Wformat-nonliteral"
|
||||
|
||||
struct arguments
|
||||
{
|
||||
size_t nmodules;
|
||||
|
|
|
@ -112,6 +112,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)))
|
||||
{
|
||||
|
@ -124,6 +126,8 @@ help_filter (int key, const char *text, void *input __attribute__ ((unused)))
|
|||
}
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic error "-Wformat-nonliteral"
|
||||
|
||||
enum {
|
||||
SYS_AREA_AUTO,
|
||||
SYS_AREA_COMMON,
|
||||
|
|
|
@ -661,6 +661,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)))
|
||||
{
|
||||
|
@ -674,6 +676,8 @@ help_filter (int key, const char *text, void *input __attribute__ ((unused)))
|
|||
}
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic error "-Wformat-nonliteral"
|
||||
|
||||
struct arguments
|
||||
{
|
||||
char **devices;
|
||||
|
|
|
@ -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