summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-14 01:46:17 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-14 01:46:17 +0000
commite3a8545f64fb21aa4c52c91b70c86a4b63a47857 (patch)
treeec2a84167837235dd9a6e1147bdaca92241b233e /base
parent6b492fd04f29d5c41161119fac828c338304ac35 (diff)
downloadchromium_src-e3a8545f64fb21aa4c52c91b70c86a4b63a47857.zip
chromium_src-e3a8545f64fb21aa4c52c91b70c86a4b63a47857.tar.gz
chromium_src-e3a8545f64fb21aa4c52c91b70c86a4b63a47857.tar.bz2
ios: Enable -Wunused-functions.
BUG=315884 TBR=net,sql owners Review URL: https://codereview.chromium.org/64273005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/debug/stack_trace_posix.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc
index 731fb39..ed1a918 100644
--- a/base/debug/stack_trace_posix.cc
+++ b/base/debug/stack_trace_posix.cc
@@ -179,6 +179,7 @@ void PrintToStderr(const char* output) {
ignore_result(HANDLE_EINTR(write(STDERR_FILENO, output, strlen(output))));
}
+#if !defined(OS_IOS)
void StackDumpSignalHandler(int signal, siginfo_t* info, void* void_context) {
// NOTE: This code MUST be async-signal safe.
// NO malloc or stdio is allowed here.
@@ -371,6 +372,7 @@ void StackDumpSignalHandler(int signal, siginfo_t* info, void* void_context) {
#endif // defined(OS_MACOSX)
_exit(1);
}
+#endif // !defined(OS_IOS)
class PrintBacktraceOutputHandler : public BacktraceOutputHandler {
public:
@@ -401,6 +403,7 @@ class StreamBacktraceOutputHandler : public BacktraceOutputHandler {
DISALLOW_COPY_AND_ASSIGN(StreamBacktraceOutputHandler);
};
+#if !defined(OS_IOS)
void WarmUpBacktrace() {
// Warm up stack trace infrastructure. It turns out that on the first
// call glibc initializes some internal data structures using pthread_once,
@@ -433,6 +436,7 @@ void WarmUpBacktrace() {
// #22 <signal handler called>
StackTrace stack_trace;
}
+#endif // !defined(OS_IOS)
} // namespace