more OSX warnings
- fix more OSX warnings
Esse commit está contido em:
@@ -477,7 +477,8 @@ static void setResourceLimit(int resource, Hdf rlimit, const char *nodeName) {
|
||||
}
|
||||
int ret = setrlimit(resource, &rl);
|
||||
if (ret) {
|
||||
Logger::Error("Unable to set %s to %ld: %s (%d)", nodeName, rl.rlim_cur,
|
||||
Logger::Error("Unable to set %s to %" PRId64 ": %s (%d)",
|
||||
nodeName, (int64_t)rl.rlim_cur,
|
||||
Util::safe_strerror(errno).c_str(), errno);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2347,7 +2347,7 @@ void Variant::unserialize(VariableUnserializer *uns,
|
||||
int64_t id = uns->readInt();
|
||||
Variant *v = uns->getByVal(id);
|
||||
if (v == nullptr) {
|
||||
throw Exception("Id %ld out of range", id);
|
||||
throw Exception("Id %" PRId64 " out of range", id);
|
||||
}
|
||||
operator=(*v);
|
||||
}
|
||||
@@ -2357,7 +2357,7 @@ void Variant::unserialize(VariableUnserializer *uns,
|
||||
int64_t id = uns->readInt();
|
||||
Variant *v = uns->getByRef(id);
|
||||
if (v == nullptr) {
|
||||
throw Exception("Id %ld out of range", id);
|
||||
throw Exception("Id %" PRId64 " out of range", id);
|
||||
}
|
||||
assignRef(*v);
|
||||
}
|
||||
|
||||
@@ -169,7 +169,6 @@ void c_Continuation::dupContVar(const StringData* name, TypedValue* src) {
|
||||
// Copy the value of the local to the cont object.
|
||||
tvDupFlattenVars(src, frame_local(fp, destId), nullptr);
|
||||
} else {
|
||||
ActRec *contFP = fp;
|
||||
if (!fp->hasVarEnv()) {
|
||||
// This VarEnv may potentially outlive the most recently stack-allocated
|
||||
// VarEnv, so we need to heap allocate it.
|
||||
|
||||
@@ -2649,7 +2649,7 @@ TranslatorX64::emitServiceReqWork(SRFlags flags, ServiceRequest req,
|
||||
const auto& argInfo = argv[i];
|
||||
switch(argv[i].m_kind) {
|
||||
case ServiceReqArgInfo::Immediate: {
|
||||
TRACE(3, "%lx, ", argInfo.m_imm);
|
||||
TRACE(3, "%" PRIx64 ", ", argInfo.m_imm);
|
||||
as. emitImmReg(argInfo.m_imm, reg);
|
||||
} break;
|
||||
case ServiceReqArgInfo::CondCode: {
|
||||
|
||||
@@ -239,7 +239,7 @@ static Impl& getServiceDataInstance() {
|
||||
// creating and starting threads statically before main() starts. If that
|
||||
// happens, we'll have to wrap getServiceDataInstance around a pthread_once and
|
||||
// pay some runtime synchronization cost.
|
||||
const Impl& s_dummy = getServiceDataInstance();
|
||||
UNUSED const Impl& s_dummy = getServiceDataInstance();
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário