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
Boost 1.73.0
C++2a
no pedantic
Raw compiler options
-Wconversion

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2a -Wconversion
prog.cc:7:16: warning: implicit conversion loses integer precision: 'int' to 'short' [-Wimplicit-int-conversion]
   short a = b + c;   // C4244
         ~   ~~^~~
prog.cc:10:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wimplicit-int-conversion]
   bb = bb + c;   // C4244
      ~ ~~~^~~
prog.cc:7:10: warning: unused variable 'a' [-Wunused-variable]
   short a = b + c;   // C4244
         ^
3 warnings generated.
Exit Code:
0