From d6b15fc92cb30cfc346fe28379d0aa8a24cbf601 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 22 Feb 2016 12:19:42 -0800 Subject: 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 . --- core/src/fxcrt/fx_basic_wstring.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') 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 -- cgit v1.2.3