From 7977839a5626d4c00902616d4f7d08e9783ac736 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Thu, 14 Apr 2016 13:32:29 +0000 Subject: [PATCH] Fix unreachable code warning The return NULL statement at the bottom of wxAuiXmlHandler::DoCreateResource() is never reached because the catch-all else branch above it always returns. Fix by removing the bottom return statement (same as how other *XmlHandler::DoCreateResource() methods handle this, and not by changing the else into an else if). --- src/xrc/xh_aui.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/xrc/xh_aui.cpp b/src/xrc/xh_aui.cpp index 3b9a2f5191..543b1f2984 100644 --- a/src/xrc/xh_aui.cpp +++ b/src/xrc/xh_aui.cpp @@ -289,8 +289,6 @@ wxObject *wxAuiXmlHandler::DoCreateResource() return anb; } - - return NULL; } bool wxAuiXmlHandler::CanHandle( wxXmlNode *node )