From fb09be05a9c62f642f67a49c57fb961ec0f3fb03 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 11 Sep 2018 12:29:40 +0100 Subject: [PATCH] Fixed warning --- examples/osgvnc/osgvnc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/osgvnc/osgvnc.cpp b/examples/osgvnc/osgvnc.cpp index 52d424178..83ad9ae29 100644 --- a/examples/osgvnc/osgvnc.cpp +++ b/examples/osgvnc/osgvnc.cpp @@ -25,6 +25,7 @@ class EscapeHandler : public osgGA::GUIEventHandler return true; } + break; } default: @@ -95,7 +96,7 @@ int main(int argc,char** argv) // add a custom escape handler, but disable the standard viewer one to enable the vnc images to handle // the escape without it getting caught by the viewer. - viewer.addEventHandler(new EscapeHandler); + viewer.addEventHandler(new EscapeHandler); viewer.setKeyEventSetsDone(0); return viewer.run();