Language
C++
Compiler
gcc 10.2.0
Options
Warnings
Boost 1.75.0
C++11
-pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.75.0-gcc-10.2.0/include -std=c++11 -pedantic 11
22
11
Exit Code:
0
Author
anonymous
over 3 years ago
C++
gcc 10.2.0
Author
anonymous
over 3 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.75.0-gcc-10.2.0/include -std=c++11 -pedantic prog.cc: In function 'int Println(int*, int)':
prog.cc:38:18: warning: unused parameter 'args' [-Wunused-parameter]
38 | int Println(int *args, int nargs) {
| ~~~~~^~~~
prog.cc:38:28: warning: unused parameter 'nargs' [-Wunused-parameter]
38 | int Println(int *args, int nargs) {
| ~~~~^~~~~
prog.cc: In instantiation of 'Object::Object(T) [with T = int (*)(int*, int)]':
prog.cc:44:27: required from here
prog.cc:17:14: warning: unused parameter 't' [-Wunused-parameter]
17 | Object(T t) {
| ~~^
prog.cc: In instantiation of 'Object::Object(T) [with T = bool]':
prog.cc:45:26: required from here
prog.cc:17:14: warning: unused parameter 't' [-Wunused-parameter]
prog.cc: In instantiation of 'Object::Object(T) [with T = std::function<int(int*, int)>]':
prog.cc:47:58: required from here
prog.cc:17:14: warning: unused parameter 't' [-Wunused-parameter]
11
22
11