Author
anonymous
about 4 years ago
Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Optimization
Boost 1.73.0
C++17
no pedantic
Author
anonymous
about 4 years ago
$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=c++17
prog.cc: In function 'int main()':
prog.cc:32:7: warning: unused variable 'a3' [-Wunused-variable]
32 | A a3; // warning: unused variable 'a3'
| ^~
prog.cc:33:13: warning: unused variable 'a4' [-Wunused-variable]
33 | const A a4; // warning: unused variable 'a4'
| ^~
prog.cc:34:7: warning: unused variable 'b3' [-Wunused-variable]
34 | B b3; // warning: unused variable 'b3
| ^~
prog.cc:35:13: warning: unused variable 'b4' [-Wunused-variable]
35 | const B b4; // warning: unused variable 'b4'
| ^~
prog.cc:36:7: warning: unused variable 'c3' [-Wunused-variable]
36 | C c3; // warning: unused variable 'c3'
| ^~
prog.cc:37:13: warning: unused variable 'c4' [-Wunused-variable]
37 | const C c4; // warning: unused variable 'c4'
| ^~
prog.cc:39:14: warning: unused variable 'a5' [-Wunused-variable]
39 | static A a5; // warning: unused variable 'a5', warning: 'a5' defined but not used
| ^~
prog.cc:40:20: warning: unused variable 'a6' [-Wunused-variable]
40 | static const A a6; // warning: unused variable 'a6'
| ^~
prog.cc:41:14: warning: unused variable 'b5' [-Wunused-variable]
41 | static B b5; // warning: unused variable 'b5'
| ^~
prog.cc:42:20: warning: unused variable 'b6' [-Wunused-variable]
42 | static const B b6; // warning: unused variable 'b6'
| ^~
prog.cc: At global scope:
prog.cc:39:14: warning: 'a5' defined but not used [-Wunused-variable]
39 | static A a5; // warning: unused variable 'a5', warning: 'a5' defined but not used
| ^~
prog.cc:19:10: warning: 'a1' defined but not used [-Wunused-variable]
19 | static A a1; // warning: 'a1' defined but not used
| ^~
prog.cc:16:12: warning: 'i1' defined but not used [-Wunused-variable]
16 | static int i1 = 0; // warning: 'i1' defined but not used
| ^~
Exit Code:
0