aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-10-03 18:39:10 +0300
committerAqua-sama <aqua@iserlohn-fortress.net>2020-10-03 18:39:10 +0300
commita8420ae8e2792f305c12840485c74899000ce4e4 (patch)
tree9f8899b946804b03de67ea2546105d46939bed5b /lib/configuration
parentUpdate Readme (diff)
downloadsmolbote-a8420ae8e2792f305c12840485c74899000ce4e4.tar.xz
Fix deprecated warning in meson.build
Fix warnings in libconfiguration
Diffstat (limited to 'lib/configuration')
-rw-r--r--lib/configuration/configuration.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/configuration/configuration.cpp b/lib/configuration/configuration.cpp
index 6686520..6e479f4 100644
--- a/lib/configuration/configuration.cpp
+++ b/lib/configuration/configuration.cpp
@@ -93,7 +93,7 @@ inline auto parse(const std::string &line, std::string &section)
extern "C" int LLVMFuzzerTestOneInput(const char *Data, long long Size)
{
std::string section;
- parse(std::string(Data, Size), section);
+ parse(std::string(Data, static_cast<unsigned long>(Size)), section);
return 0;
}
#endif
@@ -146,7 +146,7 @@ Configuration *Configuration::instance()
return s_conf;
}
-std::ostream &operator<<(std::ostream &out, const Configuration &obj)
+std::ostream &operator<<(std::ostream &out, const Configuration &obj param_typestate(unconsumed))
{
if(obj.use_global) {
out << *s_conf;