1
0
Fork 0

shut up compiler

This commit is contained in:
Jan Steemann 2016-01-29 19:19:06 +01:00
parent cd4cbae6ce
commit 828f46c76b
4 changed files with 14 additions and 5 deletions

View File

@ -363,6 +363,7 @@ static bool ValueToBoolean(TRI_json_t const* json) {
return boolValue;
}
#if 0
static bool ValueToBoolean(VPackSlice const& slice) {
if (slice.isBoolean()) {
return slice.getBoolean();
@ -378,6 +379,7 @@ static bool ValueToBoolean(VPackSlice const& slice) {
}
return false;
}
#endif
////////////////////////////////////////////////////////////////////////////////
/// @brief extract a boolean parameter from an array
@ -512,6 +514,7 @@ static bool ListContainsElement(Json const& list, Json const& testee) {
return ListContainsElement(list, testee, unused);
}
#if 0
static bool ListContainsElement(VPackSlice const& list,
VPackSlice const& testee, size_t& index) {
TRI_ASSERT(list.isArray());
@ -524,11 +527,14 @@ static bool ListContainsElement(VPackSlice const& list,
}
return false;
}
#endif
#if 0
static bool ListContainsElement(VPackSlice const& list, VPackSlice const& testee) {
size_t unused;
return ListContainsElement(list, testee, unused);
}
#endif
////////////////////////////////////////////////////////////////////////////////
/// @brief Computes the Variance of the given list.
@ -560,6 +566,7 @@ static bool Variance(Json const& values, double& value, size_t& count) {
return true;
}
#if 0
static bool Variance(VPackSlice const& values, double& value, size_t& count) {
TRI_ASSERT(values.isArray());
value = 0.0;
@ -580,8 +587,7 @@ static bool Variance(VPackSlice const& values, double& value, size_t& count) {
}
return true;
}
#endif
////////////////////////////////////////////////////////////////////////////////
/// @brief Sorts the given list of Numbers in ASC order.
@ -612,6 +618,7 @@ static bool SortNumberList(Json const& values, std::vector<double>& result) {
/// Returns false if the list contains non-number values.
////////////////////////////////////////////////////////////////////////////////
#if 0
static bool SortNumberList(VPackSlice const& values,
std::vector<double>& result) {
TRI_ASSERT(values.isArray());
@ -628,6 +635,7 @@ static bool SortNumberList(VPackSlice const& values,
std::sort(result.begin(), result.end());
return true;
}
#endif
////////////////////////////////////////////////////////////////////////////////
/// @brief Expands a shaped Json

View File

@ -86,9 +86,8 @@ static void JS_CasAgency(v8::FunctionCallbackInfo<v8::Value> const& args) {
std::string const key = TRI_ObjectToString(args[0]);
int res = TRI_ERROR_NO_ERROR;
VPackBuilder oldBuilder;
res = TRI_V8ToVPack(isolate, oldBuilder, args[1], false);
int res = TRI_V8ToVPack(isolate, oldBuilder, args[1], false);
if (res != TRI_ERROR_NO_ERROR) {
TRI_V8_THROW_EXCEPTION_PARAMETER("cannot convert <oldValue> to VPack");

View File

@ -300,6 +300,7 @@ static void JS_SynchronizeReplication(
}
}
#if 0
bool forSynchronousReplication = false;
if (object->Has(TRI_V8_ASCII_STRING("forSynchronousReplication"))) {
if (object->Get(TRI_V8_ASCII_STRING("forSynchronousReplication"))->IsBoolean()) {
@ -307,6 +308,7 @@ static void JS_SynchronizeReplication(
TRI_ObjectToBoolean(object->Get(TRI_V8_ASCII_STRING("forSynchronousReplication")));
}
}
#endif
std::string errorMsg = "";
InitialSyncer syncer(vocbase, &config, restrictCollections, restrictType,

View File

@ -559,5 +559,5 @@ void TRI_WindowsEmergencyLog(char const* func, char const* file, int line,
va_start(ap, fmt);
TRI_LogWindowsEventlog(func, file, line, fmt, ap);
va_end(wva);
va_end(ap);
}