From cdfe41935853de209558ff1aa88ef6704acb527d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 1 Nov 2014 23:35:38 +0100 Subject: [PATCH] ObjImporter: another workaround to make Clang Analyzer happy. --- src/MagnumPlugins/ObjImporter/ObjImporter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MagnumPlugins/ObjImporter/ObjImporter.cpp b/src/MagnumPlugins/ObjImporter/ObjImporter.cpp index ec93527a8..8b208dfb4 100644 --- a/src/MagnumPlugins/ObjImporter/ObjImporter.cpp +++ b/src/MagnumPlugins/ObjImporter/ObjImporter.cpp @@ -80,6 +80,10 @@ template Math::Vector extractFloatData(std::strin } if(data.size() == size+1) { + /* This should be obvious from the first if, but add this just to make + Clang Analyzer happy */ + CORRADE_INTERNAL_ASSERT(extra); + #if !defined(CORRADE_TARGET_NACL_NEWLIB) && !defined(CORRADE_TARGET_ANDROID) *extra = std::stof(data.back()); #else