mirror of
https://github.com/rkd77/elinks.git
synced 2025-10-21 19:54:04 -04:00
[gcc] pragma outside function body
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user