1
0
Fork 0

[gcc] pragma outside function body

This commit is contained in:
Witold Filipczyk 2019-12-06 20:13:38 +01:00
parent e8cb012ada
commit d8de9ac7e5
1 changed files with 3 additions and 3 deletions

View File

@ -53,6 +53,8 @@ do_dialog(struct terminal *term, struct dialog *dlg,
static void cycle_widget_focus(struct dialog_data *dlg_data, int direction);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
static void
update_all_widgets(struct dialog_data *dlg_data)
{
@ -60,13 +62,11 @@ update_all_widgets(struct dialog_data *dlg_data)
/* Iterate backwards rather than forwards so that listboxes are drawn
* last, which means that they can grab the cursor. Yes, 'tis hacky. */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
foreach_widget_back(dlg_data, widget_data) {
display_widget(dlg_data, widget_data);
}
#pragma GCC diagnostic pop
}
#pragma GCC diagnostic pop
void
redraw_dialog(struct dialog_data *dlg_data, int layout)