From: Christian Schmitt Date: Sun, 2 Feb 2014 15:47:25 +0000 (+0100) Subject: MapWidget: silence compiler warning X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a0184ac80ce9d8ce9eef7eabb572faf458c19cfc;p=flightgear.git MapWidget: silence compiler warning --- diff --git a/src/GUI/MapWidget.cxx b/src/GUI/MapWidget.cxx index 8a5a0b715..6c0dd27d2 100644 --- a/src/GUI/MapWidget.cxx +++ b/src/GUI/MapWidget.cxx @@ -1647,6 +1647,9 @@ SGGeod MapWidget::unproject(const SGVec2d& p) const SGVec3d cartPt = orient.rotate(SGVec3d(unscaled.x(), unscaled.y(), 0.0)); return SGGeod::fromCart(cartPt + cartCenter); } + + default: + throw sg_exception("MapWidget::unproject(): requested unknown projection"); } // of projection mode switch }