[fuchsia] Disable build warning.

Fuchsia has no mallinfo() or getrusage(). This silences the build warnings. Bug: chromium:921807 Change-Id: Ifbb274efdc99ebdf38a6b6b8760ffd42be6fafa4 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31708Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarFabrice de Gans-Riberi <fdegans@chromium.org> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
parent 036cc9ae
......@@ -65,7 +65,9 @@ static std::pair<std::chrono::microseconds, std::chrono::microseconds> getRUsage
::getrusage(RUSAGE_SELF, &RU);
return { toDuration(RU.ru_utime), toDuration(RU.ru_stime) };
#else
#if !defined(__Fuchsia__)
#warning Cannot get usage times on this platform
#endif
return { std::chrono::microseconds::zero(), std::chrono::microseconds::zero() };
#endif
}
......@@ -107,7 +109,9 @@ size_t Process::GetMallocUsage() {
return EndOfMemory - StartOfMemory;
return 0;
#else
#if !defined(__Fuchsia__)
#warning Cannot get malloc info on this platform
#endif
return 0;
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment