mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 10:10:29 +00:00
Enable -Wformat=2 if it's supported.
This commit is contained in:
1 parent
bbac6789aa
commit
ae558c2ccf
15 files changed
+57
-1
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user