summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-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