Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C++

Compiler

gcc 10.2.0

Options
Warnings
Boost 1.75.0
C++2a(GNU)
-pedantic

Author

anonymous

over 3 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.75.0-gcc-10.2.0/include -std=gnu++2a -pedantic
prog.cc: In function 'int Println(int*, int)':
prog.cc:34:18: warning: unused parameter 'args' [-Wunused-parameter]
   34 | int Println(int *args, int nargs) {
      |             ~~~~~^~~~
prog.cc:34:28: warning: unused parameter 'nargs' [-Wunused-parameter]
   34 | int Println(int *args, int nargs) {
      |                        ~~~~^~~~~
prog.cc: In instantiation of 'Object::Object(T) [with T = int (*)(int*, int)]':
prog.cc:40:27:   required from here
prog.cc:13:14: warning: unused parameter 't' [-Wunused-parameter]
   13 |     Object(T t) {
      |            ~~^
prog.cc: In instantiation of 'Object::Object(T) [with T = bool]':
prog.cc:41:26:   required from here
prog.cc:13:14: warning: unused parameter 't' [-Wunused-parameter]
prog.cc: In instantiation of 'Object::Object(T) [with T = std::function<int(int*, int)>]':
prog.cc:43:58:   required from here
prog.cc:13:14: warning: unused parameter 't' [-Wunused-parameter]
11
22
11
Exit Code:
0