Fix some msvc warnings

This commit is contained in:
Jeremy Rifkin 2025-02-19 20:41:19 -06:00
parent ca8416ea1e
commit e86f4eba8f
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -47,7 +47,7 @@ void dump_symbols(const std::filesystem::path& path) {
fmt::println("Not implemented yet (TODO)"); fmt::println("Not implemented yet (TODO)");
} }
#else #else
void dump_symbols(const std::filesystem::path& path) { void dump_symbols(const std::filesystem::path&) {
fmt::println("Unable to dump symbol table on this platform"); fmt::println("Unable to dump symbol table on this platform");
} }
#endif #endif
@ -76,6 +76,7 @@ int main(int argc, char** argv) CPPTRACE_TRY {
return 1; return 1;
} }
dump_symbols(path); dump_symbols(path);
return 0;
} CPPTRACE_CATCH(const std::exception& e) { } CPPTRACE_CATCH(const std::exception& e) {
fmt::println(stderr, "Caught exception {}: {}", cpptrace::demangle(typeid(e).name()), e.what()); fmt::println(stderr, "Caught exception {}: {}", cpptrace::demangle(typeid(e).name()), e.what());
cpptrace::from_current_exception().print(); cpptrace::from_current_exception().print();