lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject lucy-clownfish git commit: Fix compiler warnings in XSBind.c
Date Wed, 23 Mar 2016 15:44:25 GMT
Repository: lucy-clownfish
Updated Branches:
  refs/heads/0.5 c83c71364 -> 33651d757


Fix compiler warnings in XSBind.c


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

Branch: refs/heads/0.5
Commit: 33651d757941fd4c4686cf942880e9006d813796
Parents: c83c713
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Wed Mar 23 16:06:14 2016 +0100
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Wed Mar 23 16:13:54 2016 +0100

----------------------------------------------------------------------
 runtime/perl/xs/XSBind.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/33651d75/runtime/perl/xs/XSBind.c
----------------------------------------------------------------------
diff --git a/runtime/perl/xs/XSBind.c b/runtime/perl/xs/XSBind.c
index 85bd85b..7a5662e 100644
--- a/runtime/perl/xs/XSBind.c
+++ b/runtime/perl/xs/XSBind.c
@@ -931,7 +931,7 @@ CFISH_Hash_To_Host_IMP(cfish_Hash *self) {
 
         // Using a negative `klen` argument to signal UTF-8 is undocumented
         // in older Perl versions but works since 5.8.0.
-        hv_store(perl_hash, key_ptr, -key_size, val_sv, 0);
+        (void)hv_store(perl_hash, key_ptr, -key_size, val_sv, 0);
     }
 
     CFISH_DECREF(iter);
@@ -1014,11 +1014,13 @@ cfish_TestUtils_clone_host_runtime() {
 
 void
 cfish_TestUtils_set_host_runtime(void *runtime) {
+    CFISH_UNUSED_VAR(runtime);
     CFISH_THROW(CFISH_ERR, "No thread support");
 }
 
 void
 cfish_TestUtils_destroy_host_runtime(void *runtime) {
+    CFISH_UNUSED_VAR(runtime);
     CFISH_THROW(CFISH_ERR, "No thread support");
 }
 


Mime
View raw message