From 41f875a72930d88cbf9b0a656bcd56c9a59031ac Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 5 Mar 2017 21:41:52 +0200 Subject: [PATCH] Silence a warning about log levels. These levels will never be set on the output side, so handle them as default here. --- src/FDM/JSBSim/JSBSim.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/FDM/JSBSim/JSBSim.cxx b/src/FDM/JSBSim/JSBSim.cxx index 0dac1d72f..5377b933c 100644 --- a/src/FDM/JSBSim/JSBSim.cxx +++ b/src/FDM/JSBSim/JSBSim.cxx @@ -188,6 +188,11 @@ FGJSBsim::FGJSBsim( double dt ) case SG_POPUP: FGJSBBase::debug_lvl = 0x00; break; + + default: + // silence warning about unhandled cases + FGJSBBase::debug_lvl = 0x00; + break; } } else { // if flight is excluded, don't bother