Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 3 years ago

Language

C++

Compiler

clang 14.0.0

Options
Warnings
Optimization
Boost 1.79.0
C++11
-pedantic
Raw compiler options
-fno-elide-constructors

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 -fno-elide-constructors
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
move ctor
Exit Code:
0