From fb18bd235bc716963c72c1dd6358176cb50516ae Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 2 Jan 2018 20:08:48 +0100 Subject: Add missing return statement causing segfault Added compile flags to give error when missing return statement --- src/GlobalLib.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/GlobalLib.cpp') diff --git a/src/GlobalLib.cpp b/src/GlobalLib.cpp index 3334655..9083354 100644 --- a/src/GlobalLib.cpp +++ b/src/GlobalLib.cpp @@ -183,9 +183,7 @@ namespace sibs if(sibsConfig.shouldUseCmake()) { CmakeModule cmakeModule; - Result cmakeCompileResult = cmakeModule.compile(sibsConfig, buildPath, staticLinkerFlagCallbackFunc, dynamicLinkerFlagCallbackFunc, globalIncludeDirCallback); - if(!cmakeCompileResult) - return cmakeCompileResult; + return cmakeModule.compile(sibsConfig, buildPath, staticLinkerFlagCallbackFunc, dynamicLinkerFlagCallbackFunc, globalIncludeDirCallback); } else { -- cgit v1.2.3