[evince] libdocument: Fix -Wdeclaration-after-statement warning



commit 71e883e5e31f5ae3cdb913fc3c8376284d18ea06
Author: Christian Persch <chpe gnome org>
Date:   Fri Jul 26 21:40:56 2013 +0200

    libdocument: Fix -Wdeclaration-after-statement warning

 libdocument/ev-document.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c
index 3be4f6f..5907748 100644
--- a/libdocument/ev-document.c
+++ b/libdocument/ev-document.c
@@ -668,9 +668,11 @@ ev_document_get_info (EvDocument *document)
 gboolean
 ev_document_get_backend_info (EvDocument *document, EvDocumentBackendInfo *info)
 {
+       EvDocumentClass *klass;
+
        g_return_val_if_fail (EV_IS_DOCUMENT (document), FALSE);
 
-       EvDocumentClass *klass = EV_DOCUMENT_GET_CLASS (document);
+       klass = EV_DOCUMENT_GET_CLASS (document);
        if (klass->get_backend_info == NULL)
                return FALSE;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]