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

@ -183,6 +183,8 @@ draw_pixmap_bar (grub_gui_progress_bar_t self)
}
}
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
static void
draw_text (grub_gui_progress_bar_t self)
{
@ -212,6 +214,8 @@ draw_text (grub_gui_progress_bar_t self)
}
}
#pragma GCC diagnostic error "-Wformat-nonliteral"
static void
progress_bar_paint (void *vself, const grub_video_rect_t *region)
{