Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Viewed less than a minute ago

RWeXFyqMrbjzWyLS

C++ gcc 12.1.0

Created at 1 minute ago

Created by anonymous

Author

anonymous

1 minute ago

Language

C++

Compiler

gcc 12.1.0

Options
Warnings
Don't Use Boost
Compiler Default
no pedantic
Raw compiler options
-fpermissive
セオライド・テクノロジー㈱株式会社フィックスターズ
Siv3D

Author

anonymous

1 minute ago

›
⌄
9
1
2
3
4
5
6
7
8
9
#include <cstdio>
#include <cstdlib>

int main(void) {
float* a = malloc(sizeof(*a));
puts("hello, world");
return 0;
}

$ 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
セオライド・テクノロジー㈱株式会社フィックスターズ
Siv3D