mirror of https://gitee.com/bigwinds/arangodb
shut up compiler
This commit is contained in:
parent
cd4cbae6ce
commit
828f46c76b
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue