mirror of
https://gitlab.gnome.org/GNOME/evince
synced 2024-06-30 22:54:23 +00:00
ev-page-accessible: silence maybe-uninitialized warnings
Silence the following warnings, since the compiler does not have the warranty that start and end might have been set inside get_selection_bounds ../libview/ev-page-accessible.c: In function 'ev_page_accessible_get_selection': ../libview/ev-page-accessible.c:731:74: warning: 'start' may be used uninitialized [-Wmaybe-uninitialized] 731 | if (get_selection_bounds (view, selection, &start, &end) && start != end) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ ../libview/ev-page-accessible.c:726:22: note: 'start' was declared here 726 | gint start, end; | ^~~~~ ../libview/ev-page-accessible.c:731:74: warning: 'end' may be used uninitialized [-Wmaybe-uninitialized] 731 | if (get_selection_bounds (view, selection, &start, &end) && start != end) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ ../libview/ev-page-accessible.c:726:29: note: 'end' was declared here 726 | gint start, end; | ^~~ } }
This commit is contained in:
parent
609de7fe5c
commit
d68515c164
|
@ -723,7 +723,7 @@ ev_page_accessible_get_selection (AtkText *text,
|
|||
|
||||
for (l = view->selection_info.selections; l != NULL; l = l->next) {
|
||||
EvViewSelection *selection = (EvViewSelection *)l->data;
|
||||
gint start, end;
|
||||
gint start = 0, end = 0;
|
||||
|
||||
if (selection->page != self->priv->page)
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue
Block a user