You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2016/07/06 19:55:19 UTC
[06/10] lucy git commit: Fix unused parameter warnings
Fix unused parameter warnings
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/9166d2cf
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/9166d2cf
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/9166d2cf
Branch: refs/heads/master
Commit: 9166d2cff4ca51efb781b5620836d37647d82781
Parents: 87c8b4d
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Wed Jul 6 18:53:29 2016 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Wed Jul 6 18:53:29 2016 +0200
----------------------------------------------------------------------
core/Lucy/Store/FSFileHandle.c | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/9166d2cf/core/Lucy/Store/FSFileHandle.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Store/FSFileHandle.c b/core/Lucy/Store/FSFileHandle.c
index 93d2bb6..d2431fa 100644
--- a/core/Lucy/Store/FSFileHandle.c
+++ b/core/Lucy/Store/FSFileHandle.c
@@ -444,6 +444,7 @@ FSFH_Read_IMP(FSFileHandle *self, char *dest, int64_t offset, size_t len) {
static CFISH_INLINE bool
SI_init_read_only(FSFileHandle *self, FSFileHandleIVARS *ivars) {
+ UNUSED_VAR(self);
char *filepath = Str_To_Utf8(ivars->path);
SYSTEM_INFO sys_info;
@@ -500,6 +501,7 @@ SI_init_read_only(FSFileHandle *self, FSFileHandleIVARS *ivars) {
static CFISH_INLINE void*
SI_map(FSFileHandle *self, FSFileHandleIVARS *ivars, int64_t offset,
int64_t len) {
+ UNUSED_VAR(self);
void *buf = NULL;
if (len) {
@@ -523,6 +525,7 @@ SI_map(FSFileHandle *self, FSFileHandleIVARS *ivars, int64_t offset,
static CFISH_INLINE bool
SI_unmap(FSFileHandle *self, char *buf, int64_t len) {
+ UNUSED_VAR(self);
if (buf != NULL) {
if (!UnmapViewOfFile(buf)) {
char *win_error = Err_win_error();