[olympic] Enable warnings for unsafe buffers

This commit is contained in:
2024-11-26 23:58:11 -06:00
parent 95cd38a78e
commit 7bdfe4d54f
7 changed files with 76 additions and 61 deletions

View File

@ -25,9 +25,10 @@ static std::map<ox::StringView, ox::Error(*)()> tests = {
},
};
int main(int argc, const char **args) {
int main(int argc, const char **argv) {
int retval = -1;
if (argc > 0) {
auto const args = ox::SpanView{argv, static_cast<size_t>(argc)};
auto testName = args[1];
if (tests.find(testName) != tests.end()) {
retval = static_cast<int>(tests[testName]());