[evince] libdocument: Fix -Wdeclaration-after-statement warning
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] libdocument: Fix -Wdeclaration-after-statement warning
- Date: Fri, 26 Jul 2013 20:31:44 +0000 (UTC)
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]