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

@ -229,6 +229,9 @@ grub_partition_msdos_iterate (grub_disk_t disk,
}
#ifdef GRUB_UTIL
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
static grub_err_t
pc_partition_map_embed (struct grub_disk *disk, unsigned int *nsectors,
unsigned int max_nsectors,
@ -401,6 +404,9 @@ pc_partition_map_embed (struct grub_disk *disk, unsigned int *nsectors,
N_("your embedding area is unusually small. "
"core.img won't fit in it."));
}
#pragma GCC diagnostic error "-Wformat-nonliteral"
#endif