diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-08-02 14:54:33 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-08-02 19:16:52 +0300 |
commit | 3129984e1ad0543513815ad455c44aac2d407ee2 (patch) | |
tree | d90fab71295416e263bdcff3c2213d804a63884c /i18npool | |
parent | 056f15c2ccd5b1c6a79004fdfe113e524175e27f (diff) |
WaE: address of function will always evaluate to 'true'
Change-Id: I9685faf1658bac91abe348a409ec85e2421b1c49
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/textconversion/textconversion_ko.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/i18npool/source/textconversion/textconversion_ko.cxx b/i18npool/source/textconversion/textconversion_ko.cxx index 96c73143b940..334de83bfae1 100644 --- a/i18npool/source/textconversion/textconversion_ko.cxx +++ b/i18npool/source/textconversion/textconversion_ko.cxx @@ -139,6 +139,11 @@ TextConversion_ko::getCharConversions(const OUString& aText, sal_Int32 nStartPos sal_Int16 (*getHangul2HanjaIndexCount)() = (sal_Int16 (*)()) getFunctionBySymbol("getHangul2HanjaIndexCount"); const sal_uInt16* (*getHanja2HangulIndex)() = (const sal_uInt16* (*)()) getFunctionBySymbol("getHanja2HangulIndex"); const sal_Unicode* (*getHanja2HangulData)() = (const sal_Unicode* (*)()) getFunctionBySymbol("getHanja2HangulData"); +#else +#ifdef LIBO_WERROR +#pragma GCC diagnostic push +#pragma GCC diagnostic warning "-Wbool-conversions" +#endif #endif if (toHanja && getHangul2HanjaIndex && getHangul2HanjaIndexCount && getHangul2HanjaData) { ch = aText[nStartPos]; @@ -186,6 +191,9 @@ TextConversion_ko::getCharConversions(const OUString& aText, sal_Int32 nStartPos } delete[] newStr; } +#if defined(DISABLE_DYNLOADING) && defined(LIBO_WERROR) +#pragma GCC diagnostic pop +#endif return output; } |