diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2012-10-08 18:20:50 +0300 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-10 13:24:17 +0200 |
commit | 34c31cd74cde7a1c36f3603a625fb0d28c259a6e (patch) | |
tree | 64fafbc160b5a32ffafdca035932d83098f21701 /src/corelib | |
parent | 06332df7438c8d2215b02f1e01ce2ed28a49a320 (diff) |
Avoid warnings about an unreachable code
Change-Id: I57c2967db4c1bd2c39ecb3eac9b18eb7455c6a50
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/codecs/qtextcodec.cpp | 4 | ||||
-rw-r--r-- | src/corelib/global/qlibraryinfo.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/corelib/codecs/qtextcodec.cpp b/src/corelib/codecs/qtextcodec.cpp index 203560d370..d42d29d55a 100644 --- a/src/corelib/codecs/qtextcodec.cpp +++ b/src/corelib/codecs/qtextcodec.cpp @@ -583,9 +583,9 @@ QTextCodec* QTextCodec::codecForMib(int mib) #ifdef QT_USE_ICU return QIcuCodec::codecForMibUnlocked(mib); -#endif - +#else return 0; +#endif } /*! diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp index 3f01425570..ccf071826a 100644 --- a/src/corelib/global/qlibraryinfo.cpp +++ b/src/corelib/global/qlibraryinfo.cpp @@ -250,8 +250,9 @@ QLibraryInfo::isDebugBuild() { #ifdef QT_DEBUG return true; -#endif +#else return false; +#endif } #endif // QT_BOOTSTRAPPED |