mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 19:29:04 -05:00
Remove warnings on Apple clang
This commit is contained in:
+1
-1
Submodule ext/ghoul updated: b3b5268592...a5d69fac8b
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user