Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 2 years ago

Language

C++

Compiler

gcc 12.1.0

Options
Warnings
Don't Use Boost
Compiler Default
no pedantic
Raw compiler options
-fpermissive

Author

anonymous

about 2 years ago

$ g++ prog.cc -Wall -Wextra -fpermissive
prog.cc: In function 'int main()':
prog.cc:5:22: warning: invalid conversion from 'void*' to 'float*' [-fpermissive]
    5 |     float* a = malloc(sizeof(*a));
      |                ~~~~~~^~~~~~~~~~~~
      |                      |
      |                      void*
hello, world
Exit Code:
0