Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

gcc HEAD 11.0.0 20210104 (experimental)

Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic

Author

anonymous

over 4 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:24:10: warning: unused variable 'b' [-Wunused-variable]
   24 |     Base b;
      |          ^
prog.cc:26:9: warning: unused variable 'a' [-Wunused-variable]
   26 |     int a = 42;
      |         ^
prog.cc: In instantiation of 'void do_something(T) [with T = Derived]':
prog.cc:23:19:   required from here
prog.cc:15:21: warning: unused parameter 'obj' [-Wunused-parameter]
   15 | void do_something(T obj)
      |                   ~~^~~
Exit Code:
0