lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [lucy-commits] [1/6] git commit: refs/heads/move-dumpable - Address minor compiler warnings.
Date Wed, 31 Jul 2013 01:11:13 GMT
Updated Branches:
  refs/heads/move-dumpable d294f1e5b -> 3c3bbaae7


Address minor compiler warnings.

Zap a couple unused vars.  Add a cast.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/105a7e9e
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/105a7e9e
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/105a7e9e

Branch: refs/heads/move-dumpable
Commit: 105a7e9e0b723f3ad75fc73b2636efe9b09a1fa5
Parents: d294f1e
Author: Marvin Humphrey <marvin@rectangular.com>
Authored: Sun Jul 28 10:57:56 2013 -0700
Committer: Marvin Humphrey <marvin@rectangular.com>
Committed: Sun Jul 28 10:58:41 2013 -0700

----------------------------------------------------------------------
 core/Lucy/Util/Freezer.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/105a7e9e/core/Lucy/Util/Freezer.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Util/Freezer.c b/core/Lucy/Util/Freezer.c
index 3dc8265..fecd092 100644
--- a/core/Lucy/Util/Freezer.c
+++ b/core/Lucy/Util/Freezer.c
@@ -47,7 +47,6 @@ Freezer_thaw(InStream *instream) {
 
 void
 Freezer_serialize(Obj *obj, OutStream *outstream) {
-    VTable *vtable = Obj_Get_VTable(obj);
     if (Obj_Is_A(obj, CHARBUF)) {
         Freezer_serialize_charbuf((CharBuf*)obj, outstream);
     }
@@ -121,7 +120,6 @@ Freezer_serialize(Obj *obj, OutStream *outstream) {
 
 Obj*
 Freezer_deserialize(Obj *obj, InStream *instream) {
-    VTable *vtable = Obj_Get_VTable(obj);
     if (Obj_Is_A(obj, CHARBUF)) {
         obj = (Obj*)Freezer_deserialize_charbuf((CharBuf*)obj, instream);
     }
@@ -144,7 +142,7 @@ Freezer_deserialize(Obj *obj, InStream *instream) {
                         = SUPER_METHOD_PTR(BOOLNUM, Cfish_Bool_Dec_RefCount);
                     super_decref(self);
                 }
-                obj = value ? CFISH_TRUE : CFISH_FALSE;
+                obj = value ? (Obj*)CFISH_TRUE : (Obj*)CFISH_FALSE;
             }
             else if (Obj_Is_A(obj, INTEGER32)) {
                 int32_t value = (int32_t)InStream_Read_C32(instream);


Mime
View raw message