Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Boost 1.73.0
C++2a
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=c++2a
Exit Code:
0
Author
anonymous
over 4 years ago
C++
gcc 10.1.0
Author
anonymous
over 4 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=c++2a
prog.cc: In function 'int main()':
prog.cc:7:14: warning: cast between incompatible function types from 'hoge' {aka 'int (*)()'} to 'fuga' {aka 'int (*)(int)'} [-Wcast-function-type]
7 | fuga f = reinterpret_cast<fuga>(h);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:7:10: warning: unused variable 'f' [-Wunused-variable]
7 | fuga f = reinterpret_cast<fuga>(h);
| ^