got rid of a few unused variable warnings
This commit is contained in:
parent
9e61f25b17
commit
34bb62a8d9
@ -25,7 +25,7 @@ typedef int mode_t;
|
|||||||
#endif // GMinw only
|
#endif // GMinw only
|
||||||
|
|
||||||
typedef int pid_t;
|
typedef int pid_t;
|
||||||
inline int readlink(const char *cp, void *buf, int cnt)
|
inline int readlink(const char *, void *, int)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -577,8 +577,9 @@ bool TextSplit::text_to_words(const string &in)
|
|||||||
int nonalnumcnt = 0;
|
int nonalnumcnt = 0;
|
||||||
|
|
||||||
Utf8Iter it(in);
|
Utf8Iter it(in);
|
||||||
|
#ifdef KATAKANA_AS_WORDS
|
||||||
int prev_csc = -1;
|
int prev_csc = -1;
|
||||||
|
#endif
|
||||||
for (; !it.eof(); it++) {
|
for (; !it.eof(); it++) {
|
||||||
unsigned int c = *it;
|
unsigned int c = *it;
|
||||||
nonalnumcnt++;
|
nonalnumcnt++;
|
||||||
@ -627,9 +628,9 @@ bool TextSplit::text_to_words(const string &in)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
prev_csc = csc;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
prev_csc = csc;
|
|
||||||
char asciirep = 0;
|
char asciirep = 0;
|
||||||
int cc = whatcc(c, &asciirep);
|
int cc = whatcc(c, &asciirep);
|
||||||
|
|
||||||
|
|||||||
@ -344,8 +344,6 @@ int Query::Native::abstractFromText(
|
|||||||
Chrono&
|
Chrono&
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Xapian::Database& xrdb(ndb->xrdb);
|
|
||||||
|
|
||||||
string rawtext;
|
string rawtext;
|
||||||
if (!ndb->getRawText(docid, rawtext)) {
|
if (!ndb->getRawText(docid, rawtext)) {
|
||||||
LOGDEB0("abstractFromText: can't fetch text\n");
|
LOGDEB0("abstractFromText: can't fetch text\n");
|
||||||
|
|||||||
@ -636,7 +636,6 @@ int Query::Native::makeAbstract(Xapian::docid docid,
|
|||||||
}
|
}
|
||||||
|
|
||||||
Rcl::Db::Native *ndb(m_q->m_db->m_ndb);
|
Rcl::Db::Native *ndb(m_q->m_db->m_ndb);
|
||||||
Xapian::Database& xrdb(ndb->xrdb);
|
|
||||||
|
|
||||||
// Total number of slots we populate. The 7 is taken as
|
// Total number of slots we populate. The 7 is taken as
|
||||||
// average word size. It was a mistake to have the user max
|
// average word size. It was a mistake to have the user max
|
||||||
|
|||||||
@ -374,7 +374,7 @@ bool Db::Native::idxTermMatch_p(
|
|||||||
Xapian::TermIterator it = xdb.allterms_begin();
|
Xapian::TermIterator it = xdb.allterms_begin();
|
||||||
if (!is.empty())
|
if (!is.empty())
|
||||||
it.skip_to(is.c_str());
|
it.skip_to(is.c_str());
|
||||||
for (int rcnt = 0; it != xdb.allterms_end(); it++) {
|
for (; it != xdb.allterms_end(); it++) {
|
||||||
const string ixterm{*it};
|
const string ixterm{*it};
|
||||||
// If we're beyond the terms matching the initial
|
// If we're beyond the terms matching the initial
|
||||||
// section, end
|
// section, end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user