Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 2 years ago

Language

C

Compiler

gcc HEAD 13.0.1 20230118 (experimental)

Options
Warnings
C11
-pedantic-errors
Raw compiler options
-Wno-sign-compare

Author

anonymous

over 2 years ago

$ gcc prog.c -Wall -Wextra -std=c11 -pedantic-errors -Wno-sign-compare
prog.c: In function 'main':
prog.c:4:21: warning: overflow in conversion from 'int' to 'signed char' changes value from '175' to '-81' [-Woverflow]
    4 |     signed char c = 0xAF; // probably gives an overflow warning
      |                     ^~~~
success! i = FFFFFFAF, (which is -81)
Exit Code:
0