summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/rankings.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-10 23:29:16 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-10 23:29:16 +0000
commit69a9dcf57693dc2f10163abfe9208155f3df6307 (patch)
treecd195ec862cd59998aac9fed43b9ef26327d213d /net/disk_cache/rankings.cc
parent5b50389a73c7f47545ab0abebea5e3d885ab1ce9 (diff)
downloadchromium_src-69a9dcf57693dc2f10163abfe9208155f3df6307.zip
chromium_src-69a9dcf57693dc2f10163abfe9208155f3df6307.tar.gz
chromium_src-69a9dcf57693dc2f10163abfe9208155f3df6307.tar.bz2
clang: Let everything compile in Release builds.
Release builds also require http://code.google.com/p/googletest/issues/detail?id=321 BUG=None TEST=None Review URL: http://codereview.chromium.org/3700001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62128 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/rankings.cc')
-rw-r--r--net/disk_cache/rankings.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/disk_cache/rankings.cc b/net/disk_cache/rankings.cc
index e7c6736..5c0313b 100644
--- a/net/disk_cache/rankings.cc
+++ b/net/disk_cache/rankings.cc
@@ -65,6 +65,7 @@ enum CrashLocation {
ON_REMOVE_3, ON_REMOVE_4, ON_REMOVE_5, ON_REMOVE_6, ON_REMOVE_7, ON_REMOVE_8
};
+#ifndef NDEBUG
void TerminateSelf() {
#if defined(OS_WIN)
// Windows does more work on _exit() than we would like, so we force exit.
@@ -75,6 +76,7 @@ void TerminateSelf() {
_exit(0);
#endif
}
+#endif // NDEBUG
// Generates a crash on debug builds, acording to the value of g_rankings_crash.
// This used by crash_cache.exe to generate unit-test files.