diff --git a/hphp/runtime/base/runtime_option.cpp b/hphp/runtime/base/runtime_option.cpp index 5e7224843..3a48a77f3 100644 --- a/hphp/runtime/base/runtime_option.cpp +++ b/hphp/runtime/base/runtime_option.cpp @@ -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); } } diff --git a/hphp/runtime/base/type_variant.cpp b/hphp/runtime/base/type_variant.cpp index 705acfaa0..854cd69cd 100644 --- a/hphp/runtime/base/type_variant.cpp +++ b/hphp/runtime/base/type_variant.cpp @@ -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); } diff --git a/hphp/runtime/ext/ext_continuation.cpp b/hphp/runtime/ext/ext_continuation.cpp index 80aded7a8..a5b734be2 100644 --- a/hphp/runtime/ext/ext_continuation.cpp +++ b/hphp/runtime/ext/ext_continuation.cpp @@ -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. diff --git a/hphp/runtime/vm/jit/translator-x64.cpp b/hphp/runtime/vm/jit/translator-x64.cpp index a377e029c..425b0c6c3 100644 --- a/hphp/runtime/vm/jit/translator-x64.cpp +++ b/hphp/runtime/vm/jit/translator-x64.cpp @@ -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: { diff --git a/hphp/util/service_data.cpp b/hphp/util/service_data.cpp index 1bbb7c5c4..d432970f1 100644 --- a/hphp/util/service_data.cpp +++ b/hphp/util/service_data.cpp @@ -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