Force all and extra warnings as errors except for tests

This commit is contained in:
Bartek Kryza
2022-06-08 20:32:32 +02:00
parent fbcecdab50
commit 0e7c30541a
20 changed files with 45 additions and 51 deletions

View File

@@ -109,7 +109,7 @@ std::vector<std::string> split(std::string str, std::string_view delimiter)
result.push_back(str);
else
while (str.size()) {
int index = str.find(delimiter);
auto index = str.find(delimiter);
if (index != std::string::npos) {
result.push_back(str.substr(0, index));
str = str.substr(index + delimiter.size());