srctree

Robin Linden parent a2beb7cf fc9d82a6
Build with more warning flags on MSVC

inlinesplit
.bazelrc added: 18, removed: 4, total 14
@@ -1,10 +1,24 @@
# Build configuration
# =========================================================
 
build:debug -c dbg
build:release -c opt
 
# Compiler configuration
# =========================================================
 
build:gnulike --cxxopt='-std=c++2a'
build:msvc --cxxopt='-std:c++latest'
 
build:msvc --cxxopt='/std:c++latest'
build:msvc --cxxopt='/W4' # More warnings.
build:msvc --cxxopt='/WX' # Treat warnings as errors.
build:msvc --cxxopt='/permissive-' # Conform to the standard.
build:msvc --per_file_copt='external/ftxui[:/]@/wd4005' # C4005: 'NOMINMAX': macro redefinition
build:msvc --per_file_copt='external/ftxui[:/]@/wd4244' # C4244: '=': conversion from 'int' to 'uint8_t', possible loss of data
build:msvc --per_file_copt='external/ftxui[:/]@/wd4267' # C4267: '=': conversion from 'size_t' to 'int', possible loss of data
 
# Misc configuration
# =========================================================
 
test --test_output=errors
 
 
browser/main.cpp added: 18, removed: 4, total 14
@@ -40,7 +40,7 @@ std::string drop_http_headers(std::string html) {
 
} // namespace
 
int main(int argc, char **argv) {
int main([[maybe_unused]] int argc, [[maybe_unused]] char **argv) {
asio::ip::tcp::iostream stream("www.example.com", "http");
stream << "GET / HTTP/1.1\r\n";
stream << "Host: www.example.com\r\n";