mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[gcc] pragma outside function body
This commit is contained in:
parent
e8cb012ada
commit
d8de9ac7e5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user