[libgdata] build: Fix -Werror build for clang



commit 1dd92748d8bdb5bb538c6701db4857e18e842ff8
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Tue Jun 9 16:00:09 2015 +0800

    build: Fix -Werror build for clang
    
    This fixes implicit enumeration type conversion.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=750480

 gdata/gdata-batch-feed.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdata/gdata-batch-feed.c b/gdata/gdata-batch-feed.c
index 0c04bcc..103ec9c 100644
--- a/gdata/gdata-batch-feed.c
+++ b/gdata/gdata-batch-feed.c
@@ -123,7 +123,8 @@ parse_xml (GDataParsable *parsable, xmlDoc *doc, xmlNode *node, gpointer user_da
 
                        /* Parse the error (it's returned in a service-specific format */
                        g_assert (klass->parse_error_response != NULL);
-                       klass->parse_error_response (service, op->type, status_code, status_reason, (gchar*) 
xmlBufferContent (status_response),
+                       klass->parse_error_response (service, (GDataOperationType) op->type, status_code,
+                                                    status_reason, (gchar*) xmlBufferContent 
(status_response),
                                                     xmlBufferLength (status_response), &child_error);
 
                        /* Run the operation's callback. This takes ownership of @child_error. */


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