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 2013/05/16 00:28:54 UTC
[lucy-commits] [20/21] git commit: refs/heads/master - Mark some unused variables
Mark some unused variables
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/799d4eaf
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/799d4eaf
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/799d4eaf
Branch: refs/heads/master
Commit: 799d4eaf4e200468b7aca7baf70a84048cf954da
Parents: 21f579a
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Wed May 15 23:46:58 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Thu May 16 00:11:35 2013 +0200
----------------------------------------------------------------------
c/src/Clownfish/Err.c | 1 +
c/src/Clownfish/LockFreeRegistry.c | 1 +
c/src/Clownfish/Obj.c | 1 +
c/src/Clownfish/VTable.c | 4 ++++
c/src/Lucy/Analysis/RegexTokenizer.c | 11 +++++++++++
c/src/Lucy/Document/Doc.c | 4 ++++
6 files changed, 22 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/799d4eaf/c/src/Clownfish/Err.c
----------------------------------------------------------------------
diff --git a/c/src/Clownfish/Err.c b/c/src/Clownfish/Err.c
index fa85b82..a233f74 100644
--- a/c/src/Clownfish/Err.c
+++ b/c/src/Clownfish/Err.c
@@ -62,6 +62,7 @@ Err_do_throw(Err *error) {
void*
Err_to_host(Err *self) {
+ UNUSED_VAR(self);
THROW(ERR, "TODO");
UNREACHABLE_RETURN(void*);
}
http://git-wip-us.apache.org/repos/asf/lucy/blob/799d4eaf/c/src/Clownfish/LockFreeRegistry.c
----------------------------------------------------------------------
diff --git a/c/src/Clownfish/LockFreeRegistry.c b/c/src/Clownfish/LockFreeRegistry.c
index d6350c4..92c121c 100644
--- a/c/src/Clownfish/LockFreeRegistry.c
+++ b/c/src/Clownfish/LockFreeRegistry.c
@@ -23,6 +23,7 @@
void*
LFReg_to_host(LockFreeRegistry *self) {
+ UNUSED_VAR(self);
THROW(ERR, "TODO");
UNREACHABLE_RETURN(void*);
}
http://git-wip-us.apache.org/repos/asf/lucy/blob/799d4eaf/c/src/Clownfish/Obj.c
----------------------------------------------------------------------
diff --git a/c/src/Clownfish/Obj.c b/c/src/Clownfish/Obj.c
index 17fa4ab..30d6b9e 100644
--- a/c/src/Clownfish/Obj.c
+++ b/c/src/Clownfish/Obj.c
@@ -52,6 +52,7 @@ Obj_dec_refcount(Obj *self) {
void*
Obj_to_host(Obj *self) {
+ UNUSED_VAR(self);
THROW(ERR, "TODO");
UNREACHABLE_RETURN(void*);
}
http://git-wip-us.apache.org/repos/asf/lucy/blob/799d4eaf/c/src/Clownfish/VTable.c
----------------------------------------------------------------------
diff --git a/c/src/Clownfish/VTable.c b/c/src/Clownfish/VTable.c
index 273e78a..cc51c6f 100644
--- a/c/src/Clownfish/VTable.c
+++ b/c/src/Clownfish/VTable.c
@@ -43,6 +43,8 @@ VTable_init_obj(VTable *self, void *allocation) {
Obj*
VTable_foster_obj(VTable *self, void *host_obj) {
+ UNUSED_VAR(self);
+ UNUSED_VAR(host_obj);
THROW(ERR, "TODO");
UNREACHABLE_RETURN(Obj*);
}
@@ -61,12 +63,14 @@ VTable_fresh_host_methods(const CharBuf *class_name) {
CharBuf*
VTable_find_parent_class(const CharBuf *class_name) {
+ UNUSED_VAR(class_name);
THROW(ERR, "TODO");
UNREACHABLE_RETURN(CharBuf*);
}
void*
VTable_to_host(VTable *self) {
+ UNUSED_VAR(self);
THROW(ERR, "TODO");
UNREACHABLE_RETURN(void*);
}
http://git-wip-us.apache.org/repos/asf/lucy/blob/799d4eaf/c/src/Lucy/Analysis/RegexTokenizer.c
----------------------------------------------------------------------
diff --git a/c/src/Lucy/Analysis/RegexTokenizer.c b/c/src/Lucy/Analysis/RegexTokenizer.c
index add76f2..d2d3bbb 100644
--- a/c/src/Lucy/Analysis/RegexTokenizer.c
+++ b/c/src/Lucy/Analysis/RegexTokenizer.c
@@ -82,6 +82,8 @@ RegexTokenizer_init(RegexTokenizer *self, const CharBuf *pattern) {
void
RegexTokenizer_set_token_re(RegexTokenizer *self, void *token_re) {
+ UNUSED_VAR(self);
+ UNUSED_VAR(token_re);
THROW(ERR, "TODO");
}
@@ -158,6 +160,8 @@ RegexTokenizer_is_available(void) {
RegexTokenizer*
RegexTokenizer_init(RegexTokenizer *self, const CharBuf *pattern) {
+ UNUSED_VAR(self);
+ UNUSED_VAR(pattern);
THROW(ERR,
"RegexTokenizer is not available because Lucy was compiled"
" without PCRE.");
@@ -166,6 +170,8 @@ RegexTokenizer_init(RegexTokenizer *self, const CharBuf *pattern) {
void
RegexTokenizer_set_token_re(RegexTokenizer *self, void *token_re) {
+ UNUSED_VAR(self);
+ UNUSED_VAR(token_re);
THROW(ERR,
"RegexTokenizer is not available because Lucy was compiled"
" without PCRE.");
@@ -173,6 +179,7 @@ RegexTokenizer_set_token_re(RegexTokenizer *self, void *token_re) {
void
RegexTokenizer_destroy(RegexTokenizer *self) {
+ UNUSED_VAR(self);
THROW(ERR,
"RegexTokenizer is not available because Lucy was compiled"
" without PCRE.");
@@ -181,6 +188,10 @@ RegexTokenizer_destroy(RegexTokenizer *self) {
void
RegexTokenizer_tokenize_str(RegexTokenizer *self, const char *string,
size_t string_len, Inversion *inversion) {
+ UNUSED_VAR(self);
+ UNUSED_VAR(string);
+ UNUSED_VAR(string_len);
+ UNUSED_VAR(inversion);
THROW(ERR,
"RegexTokenizer is not available because Lucy was compiled"
" without PCRE.");
http://git-wip-us.apache.org/repos/asf/lucy/blob/799d4eaf/c/src/Lucy/Document/Doc.c
----------------------------------------------------------------------
diff --git a/c/src/Lucy/Document/Doc.c b/c/src/Lucy/Document/Doc.c
index f8a8640..8e898ec 100644
--- a/c/src/Lucy/Document/Doc.c
+++ b/c/src/Lucy/Document/Doc.c
@@ -92,18 +92,22 @@ Doc_extract(Doc *self, CharBuf *field,
void*
Doc_to_host(Doc *self) {
+ UNUSED_VAR(self);
THROW(ERR, "TODO");
UNREACHABLE_RETURN(void*);
}
Hash*
Doc_dump(Doc *self) {
+ UNUSED_VAR(self);
THROW(ERR, "TODO");
UNREACHABLE_RETURN(Hash*);
}
Doc*
Doc_load(Doc *self, Obj *dump) {
+ UNUSED_VAR(self);
+ UNUSED_VAR(dump);
THROW(ERR, "TODO");
UNREACHABLE_RETURN(Doc*);
}