Remove warnings on Apple clang

This commit is contained in:
Alexander Bock
2021-03-29 23:16:15 +02:00
parent 0bfe3f6d72
commit 4ca82fff19
4 changed files with 9 additions and 8 deletions
+7 -1
View File
@@ -177,7 +177,13 @@ TestResult IntVerifier::operator()(const ghoul::Dictionary& dict,
}
}
else {
return { false, {{ key, TestResult::Offense::Reason::MissingKey }}, {} };
TestResult res;
res.success = false;
TestResult::Offense o;
o.offender = key;
o.reason = TestResult::Offense::Reason::MissingKey;
res.offenses.push_back(o);
return res;
}
}
}
-5
View File
@@ -33,11 +33,6 @@
#include "scriptscheduler_lua.inl"
namespace {
constexpr const char* KeyTime = "Time";
constexpr const char* KeyForwardScript = "ForwardScript";
constexpr const char* KeyBackwardScript = "BackwardScript";
constexpr const char* KeyUniversalScript = "Script";
struct [[codegen::Dictionary(ScheduledScript)]] Parameters {
// The time at which, when the in game time passes it, the two scripts will
// be executed. If the traversal is forwards (towards + infinity), the
+1 -1
View File
@@ -47,7 +47,7 @@ int loadFile(lua_State* L) {
);
std::vector<scripting::ScriptScheduler::ScheduledScript> scripts;
for (int i = 1; i <= scriptsDict.size(); ++i) {
for (size_t i = 1; i <= scriptsDict.size(); ++i) {
ghoul::Dictionary d = scriptsDict.value<ghoul::Dictionary>(std::to_string(i));
scripting::ScriptScheduler::ScheduledScript script =