aboutsummaryrefslogtreecommitdiffstats
path: root/src/sdk
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-26 16:33:09 +0000
committersaturneric <[email protected]>2024-07-26 16:33:09 +0000
commit3d84beaf22caaf299a3004032402bd94ee4ab886 (patch)
treea8acaf7c1781641f8254ff9fe3dc3d3d07499868 /src/sdk
parentfeat: remove spdlog and clean up log (diff)
downloadGpgFrontend-3d84beaf22caaf299a3004032402bd94ee4ab886.tar.gz
GpgFrontend-3d84beaf22caaf299a3004032402bd94ee4ab886.zip
fix: clean up warnings
Diffstat (limited to 'src/sdk')
-rw-r--r--src/sdk/GFSDKModule.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sdk/GFSDKModule.cpp b/src/sdk/GFSDKModule.cpp
index c0215a8b..ecc4afd1 100644
--- a/src/sdk/GFSDKModule.cpp
+++ b/src/sdk/GFSDKModule.cpp
@@ -69,7 +69,7 @@ auto GFModuleListRTChildKeys(const char *namespace_, const char *key,
*child_keys =
static_cast<char **>(GFAllocateMemory(sizeof(char **) * keys.size()));
- for (int i = 0; i < keys.size(); i++) {
+ for (decltype(keys.size()) i = 0; i < keys.size(); i++) {
(*child_keys)[i] = GFStrDup(keys[i]);
}
@@ -92,8 +92,8 @@ void GFModuleTriggerModuleEventCallback(GFModuleEvent *module_event,
}
auto GFModuleRetrieveRTValueOrDefaultBool(const char *namespace_,
- const char *key, int default_value)
- -> const int {
+ const char *key,
+ int default_value) -> const int {
return static_cast<const int>(
GpgFrontend::Module::RetrieveRTValueTypedOrDefault(
GFUnStrDup(namespace_), GFUnStrDup(key),