summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2016-02-22 12:19:42 -0800
committerLei Zhang <thestig@chromium.org>2016-02-22 12:19:42 -0800
commitd6b15fc92cb30cfc346fe28379d0aa8a24cbf601 (patch)
treeb37e5c9851595ce5111438498a219d467720dd6e /core
parent2373da22a2e754ae9b0e7d913da0ce2e925f76a0 (diff)
downloadpdfium-d6b15fc92cb30cfc346fe28379d0aa8a24cbf601.tar.xz
Define NDEBUG for Release builds.
Also fix -Wunused warnings as a result of this change. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1717063002 .
Diffstat (limited to 'core')
-rw-r--r--core/src/fxcrt/fx_basic_wstring.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/fxcrt/fx_basic_wstring.cpp b/core/src/fxcrt/fx_basic_wstring.cpp
index 8415e998a0..136edd073a 100644
--- a/core/src/fxcrt/fx_basic_wstring.cpp
+++ b/core/src/fxcrt/fx_basic_wstring.cpp
@@ -15,6 +15,7 @@
namespace {
+#if defined(_DEBUG)
bool IsValidCodePage(FX_WORD codepage) {
switch (codepage) {
case 0:
@@ -28,6 +29,7 @@ bool IsValidCodePage(FX_WORD codepage) {
return false;
}
}
+#endif
} // namespace