Remove warnings

This commit is contained in:
Alexander Bock
2017-04-06 23:19:23 -04:00
parent 78b0d77101
commit 9f3bbe324d
49 changed files with 244 additions and 112 deletions

View File

@@ -40,8 +40,8 @@ namespace properties {
__TYPE__ result; \
lua_pushnil(state); \
for (glm::length_t i = 0; i < ghoul::glm_components<__TYPE__>::value; ++i) { \
int success = lua_next(state, -2); \
if (success != 1) { \
int hasNext = lua_next(state, -2); \
if (hasNext != 1) { \
success = false; \
return __TYPE__(0); \
} \
@@ -85,8 +85,9 @@ namespace properties {
success = false; \
return result; \
} \
else \
else { \
result[i] = v; \
} \
} \
success = true; \
return result; \
@@ -95,8 +96,9 @@ namespace properties {
#define DEFAULT_TO_STRING_LAMBDA(__TYPE__) \
[](std::string& outValue, __TYPE__ inValue) -> bool { \
outValue = "{"; \
for (glm::length_t i = 0; i < ghoul::glm_components<__TYPE__>::value; ++i) \
for (glm::length_t i = 0; i < ghoul::glm_components<__TYPE__>::value; ++i) { \
outValue += std::to_string(inValue[i]) + ","; \
} \
outValue.pop_back(); \
outValue += "}"; \
return true; \