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
|
@ -158,6 +158,8 @@ get_space(grub_size_t need)
|
|||
}
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
|
||||
static inline void
|
||||
save_text(const char *fmt, const char *s, int len)
|
||||
{
|
||||
|
@ -183,6 +185,8 @@ save_number(const char *fmt, int number, int len)
|
|||
out_used += grub_strlen(out_buff + out_used);
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic error "-Wformat-nonliteral"
|
||||
|
||||
static inline void
|
||||
save_char(int c)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue