Tests now compile again

This commit is contained in:
Robert Bendun 2022-07-30 13:45:23 +02:00
parent 0e796d5efc
commit d8f8214556
3 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,5 @@
MAKEFLAGS="-j $(grep -c ^processor /proc/cpuinfo)"
CXXFLAGS:=$(CXXFLAGS) -std=c++20 -Wall -Wextra -Werror=switch -Werror=return-type -Werror=unused-result
CXXFLAGS:=$(CXXFLAGS) -std=c++20 -Wall -Wextra -Werror=switch -Werror=return-type -Werror=unused-result -Wno-maybe-uninitialized
CPPFLAGS:=$(CPPFLAGS) -Ilib/expected/ -Ilib/ut/ -Ilib/midi/include -Isrc/ -Ilib/bestline/
RELEASE_FLAGS=-O3
DEBUG_FLAGS=-O0 -ggdb -fsanitize=undefined -DDebug

View File

@ -241,6 +241,10 @@ static Result<void> Main(std::span<char const*> args)
continue;
}
if (arg == "-h" || arg == "--help") {
usage();
}
std::cerr << "musique: error: unrecognized command line option: " << arg << std::endl;
std::exit(1);
}

View File

@ -3,6 +3,7 @@
#include <algorithm>
#include <numeric>
#include <iterator>
using namespace boost::ut;
using namespace std::string_view_literals;