Language
C++
Compiler
gcc HEAD 9.0.0 20181226 (experimental)
Options
Warnings
Boost 1.69.0
C++17
no pedantic
Raw compiler options
-Werror
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++17 -Werror
Exit Code:
1
Author
anonymous
over 6 years ago
C++
gcc HEAD 9.0.0 20181226 (experimental)
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++17 -Werror
prog.cc: In function 'int main()':
prog.cc:8:16: error: narrowing conversion of 'i' from 'int' to 'unsigned char' [-Werror=narrowing]
8 | std::byte byte{i};
| ^
prog.cc:8:11: error: unused variable 'byte' [-Werror=unused-variable]
8 | std::byte byte{i};
| ^~~~
cc1plus: all warnings being treated as errors