From 362dcb88bc4615637c4656d6e51f8babda71e0db Mon Sep 17 00:00:00 2001 From: fourtf Date: Wed, 4 Jul 2018 10:41:43 +0200 Subject: [PATCH] put returns into #else to remove unreachable code warnings --- src/widgets/BaseWindow.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/widgets/BaseWindow.cpp b/src/widgets/BaseWindow.cpp index 0a7f463f0..ed56c3e0b 100644 --- a/src/widgets/BaseWindow.cpp +++ b/src/widgets/BaseWindow.cpp @@ -534,9 +534,9 @@ bool BaseWindow::handleDPICHANGED(MSG *msg) this->updateScale(); return true; -#endif - +#else return false; +#endif } bool BaseWindow::handleSHOWWINDOW(MSG *msg) @@ -557,9 +557,9 @@ bool BaseWindow::handleSHOWWINDOW(MSG *msg) this->calcButtonsSizes(); return true; -#endif - +#else return false; +#endif } bool BaseWindow::handleNCCALCSIZE(MSG *msg, long *result) @@ -583,9 +583,10 @@ bool BaseWindow::handleNCCALCSIZE(MSG *msg, long *result) *result = 0; return true; } -#endif - return false; +#else + return false; +#endif } bool BaseWindow::handleSIZE(MSG *msg) @@ -602,10 +603,10 @@ bool BaseWindow::handleSIZE(MSG *msg) } } } - -#endif - + return true; +#else return false; +#endif } bool BaseWindow::handleNCHITTEST(MSG *msg, long *result) @@ -721,9 +722,9 @@ bool BaseWindow::handleNCHITTEST(MSG *msg, long *result) return true; } -#endif - +#else return false; +#endif } } // namespace chatterino