diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-01-02 20:08:48 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-01-02 20:10:53 +0100 |
commit | fb18bd235bc716963c72c1dd6358176cb50516ae (patch) | |
tree | cda9e38546c0d2a738dd9e2adc7f984d431e6beb /src/GlobalLib.cpp | |
parent | 8ac9ddf460cc4c1b2972df1069128fb615b31042 (diff) |
Add missing return statement causing segfault
Added compile flags to give error when missing return statement
Diffstat (limited to 'src/GlobalLib.cpp')
-rw-r--r-- | src/GlobalLib.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<bool> cmakeCompileResult = cmakeModule.compile(sibsConfig, buildPath, staticLinkerFlagCallbackFunc, dynamicLinkerFlagCallbackFunc, globalIncludeDirCallback); - if(!cmakeCompileResult) - return cmakeCompileResult; + return cmakeModule.compile(sibsConfig, buildPath, staticLinkerFlagCallbackFunc, dynamicLinkerFlagCallbackFunc, globalIncludeDirCallback); } else { |