chore: eliminate compilation warnings under MSVC (#1170)

This commit is contained in:
leejet authored and GitHub committed 2026-01-04 22:26:57 +08:00
1 parent 2cef4badb8
commit b90b1ee9cf
30 files changed
+420 -461

No files matched your search

+2 -2
View File
@@ -1386,10 +1386,10 @@ struct SDGenerationParams {
if (!item.empty()) {
try {
custom_sigmas.push_back(std::stof(item));
} catch (const std::invalid_argument& e) {
} catch (const std::invalid_argument&) {
LOG_ERROR("error: invalid float value '%s' in --sigmas", item.c_str());
return -1;
} catch (const std::out_of_range& e) {
} catch (const std::out_of_range&) {
LOG_ERROR("error: float value '%s' out of range in --sigmas", item.c_str());
return -1;
}