Language
C++
Compiler
clang 14.0.0
Options
Warnings
Optimization
Boost 1.79.0
C++11
-pedantic
$ clang++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.79.0-clang-14.0.0/include -std=c++11 -pedantic
parameterized ctor
Exit Code:
0
Author
anonymous
almost 3 years ago
C++
clang 14.0.0
Author
anonymous
almost 3 years ago
$ clang++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.79.0-clang-14.0.0/include -std=c++11 -pedantic
prog.cc:10:11: warning: unused parameter 'x' [-Wunused-parameter]
P(int x, int y) { std::cout<<"parameterized ctor"<<std::endl;}
^
prog.cc:10:18: warning: unused parameter 'y' [-Wunused-parameter]
P(int x, int y) { std::cout<<"parameterized ctor"<<std::endl;}
^
prog.cc:17:7: warning: unused variable 'p' [-Wunused-variable]
P p({5,3});
^
3 warnings generated.
parameterized ctor