put returns into #else to remove unreachable code warnings

This commit is contained in:
fourtf
2018-07-04 10:41:43 +02:00
parent 1064729e1a
commit 362dcb88bc
+12 -11
View File
@@ -534,9 +534,9 @@ bool BaseWindow::handleDPICHANGED(MSG *msg)
this->updateScale(); this->updateScale();
return true; return true;
#endif #else
return false; return false;
#endif
} }
bool BaseWindow::handleSHOWWINDOW(MSG *msg) bool BaseWindow::handleSHOWWINDOW(MSG *msg)
@@ -557,9 +557,9 @@ bool BaseWindow::handleSHOWWINDOW(MSG *msg)
this->calcButtonsSizes(); this->calcButtonsSizes();
return true; return true;
#endif #else
return false; return false;
#endif
} }
bool BaseWindow::handleNCCALCSIZE(MSG *msg, long *result) bool BaseWindow::handleNCCALCSIZE(MSG *msg, long *result)
@@ -583,9 +583,10 @@ bool BaseWindow::handleNCCALCSIZE(MSG *msg, long *result)
*result = 0; *result = 0;
return true; return true;
} }
#endif
return false; return false;
#else
return false;
#endif
} }
bool BaseWindow::handleSIZE(MSG *msg) bool BaseWindow::handleSIZE(MSG *msg)
@@ -602,10 +603,10 @@ bool BaseWindow::handleSIZE(MSG *msg)
} }
} }
} }
return true;
#endif #else
return false; return false;
#endif
} }
bool BaseWindow::handleNCHITTEST(MSG *msg, long *result) bool BaseWindow::handleNCHITTEST(MSG *msg, long *result)
@@ -721,9 +722,9 @@ bool BaseWindow::handleNCHITTEST(MSG *msg, long *result)
return true; return true;
} }
#endif #else
return false; return false;
#endif
} }
} // namespace chatterino } // namespace chatterino