Language
C++
Compiler
clang 6.0.1
Options
Warnings
Boost 1.68.0
C++03
no pedantic
Raw compiler options
class.cpp
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-6.0.1/include -std=c++98 class.cpp
5
5
Exit Code:
0
Author
anonymous
almost 7 years ago
C++
clang 6.0.1
Author
anonymous
almost 7 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-6.0.1/include -std=c++98 class.cpp
prog.cc:7:4: warning: unused variable 'b' [-Wunused-variable]
B b;
^
prog.cc:3:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char** argv) {
^
prog.cc:3:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char** argv) {
^
3 warnings generated.
class.cpp:12:36: warning: unused parameter 'fn' [-Wunused-parameter]
template<typename T> void ignore(T fn) {/* Use fn? */}
^
1 warning generated.
5
5