diff options
author | rbuj <[email protected]> | 2019-09-05 20:01:37 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-09-06 01:17:18 +0200 |
commit | edd3661daf0c834881c59531bb52b42351b5afd2 (patch) | |
tree | 401eaa468e6ce0de8de2ff3abd4d8059539e5f70 /shell | |
parent | 25baad286f024a881367a82d7ec65545cc1929e7 (diff) | |
download | atril-edd3661daf0c834881c59531bb52b42351b5afd2.tar.bz2 atril-edd3661daf0c834881c59531bb52b42351b5afd2.tar.xz |
remove -Wunused-but-set-variable warning
ephy-zoom-control.c:274:20: warning: variable ‘tool_item_class’ set but not used [-Wunused-but-set-variable]
274 | GtkToolItemClass *tool_item_class;
| ^~~~~~~~~~~~~~~
--
ev-window.c:1390:10: warning: variable ‘page’ set but not used [-Wunused-but-set-variable]
1390 | gint page, n_pages;
| ^~~~
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index 15d81b4c..724491ca 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1387,7 +1387,7 @@ monitor_get_dimesions (EvWindow *ev_window, static void setup_document_from_metadata (EvWindow *window) { - gint page, n_pages; + gint n_pages; gint width; gint height; gdouble width_ratio; @@ -1402,7 +1402,6 @@ setup_document_from_metadata (EvWindow *window) * since closing it on the last page most likely means the * user was finished reading the document. In that case, reopening should * show the first page. */ - page = ev_document_model_get_page (window->priv->model); n_pages = ev_document_get_n_pages (window->priv->document); if (ev_metadata_get_int (window->priv->metadata, "window_width", &width) && |