diff options
author | Lei Zhang <thestig@chromium.org> | 2016-02-22 12:19:42 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-02-22 12:19:42 -0800 |
commit | d6b15fc92cb30cfc346fe28379d0aa8a24cbf601 (patch) | |
tree | b37e5c9851595ce5111438498a219d467720dd6e /core/src | |
parent | 2373da22a2e754ae9b0e7d913da0ce2e925f76a0 (diff) | |
download | pdfium-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/src')
-rw-r--r-- | core/src/fxcrt/fx_basic_wstring.cpp | 2 |
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 |