Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 344a3d0bc0fb0868b519c3342b4982d6121eece3)

Options
Warnings
Optimization
Boost 1.73.0
C++2a
-pedantic
Raw compiler options
-Wcast-align

$ clang++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2a -pedantic -Wcast-align
prog.cc:6:5: warning: cast from 'char *' to 'int *' increases required alignment from 1 to 4 [-Wcast-align]
   *(int *)&c = 1;   // C4739
    ^~~~~~~~~
1 warning generated.
Exit Code:
0