more OSX warnings

- fix more OSX warnings
Esse commit está contido em:
Sean Cannella
2013-07-03 07:24:37 -07:00
commit de Sara Golemon
commit f0443bba23
5 arquivos alterados com 6 adições e 6 exclusões
+2 -1
Ver Arquivo
@@ -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);
}
}
+2 -2
Ver Arquivo
@@ -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);
}
-1
Ver Arquivo
@@ -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.
+1 -1
Ver Arquivo
@@ -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: {
+1 -1
Ver Arquivo
@@ -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