Closed TheKnarf closed 6 years ago
Without -wall
the only error I get is:
✗ make
g++ -ggdb -Werror -Wconversion -std=c++17 main.cpp -o ray-tracer
main.cpp:61:26: error: implicit conversion changes signedness: 'uint8_t' (aka 'unsigned char') to 'std::__1::basic_ostream<char,
std::__1::char_traits<char> >::char_type' (aka 'char') [-Werror,-Wsign-conversion]
fout.put(static_cast<uint8_t>(display[row * width + col].v[k]));
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [ray-tracer] Error 1
Pulling version ae5d8dcb73f57e985e7f356a30c6336fc7965ce0 and removing -wall
fixes the build.
Fixed in newest build.
Tried building the project on MacOS (without nix-shell):
Compiler version: