From faeb1f9b2b45cd4e0bee0a677076cbe962034b75 Mon Sep 17 00:00:00 2001 From: Tobias Sargeant Date: Mon, 23 May 2016 18:58:48 +0100 Subject: Functions only called by DumpFreeSpace need to be conditionally compiled. BUG=525938 R=mark@chromium.org Review URL: https://codereview.chromium.org/2008553002 . --- src/client/linux/microdump_writer/microdump_writer.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/client/linux') diff --git a/src/client/linux/microdump_writer/microdump_writer.cc b/src/client/linux/microdump_writer/microdump_writer.cc index 2091429c..ba10ee3a 100644 --- a/src/client/linux/microdump_writer/microdump_writer.cc +++ b/src/client/linux/microdump_writer/microdump_writer.cc @@ -62,6 +62,10 @@ using google_breakpad::UContextReader; const size_t kLineBufferSize = 2048; +#if !defined(__LP64__) +// The following are only used by DumpFreeSpace, so need to be compiled +// in conditionally in the same way. + template Dst saturated_cast(Src src) { if (src >= std::numeric_limits::max()) @@ -122,6 +126,8 @@ size_t NextOrderedMapping( return best; } +#endif // !__LP64__ + class MicrodumpWriter { public: MicrodumpWriter(const ExceptionHandler::CrashContext* context, -- cgit v1.2.1