Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 5 years ago

Language

C

Compiler

gcc 10.1.0

Options
Warnings
Optimization
Compiler Default
no pedantic

Author

anonymous

almost 5 years ago

$ gcc prog.c -Wall -Wextra -O2 -march=native
prog.c: In function 'main':
prog.c:31:26: error: incompatible type for argument 1 of 'xxfunc'
   31 |     uint32_s cc = xxfunc(aa, bb);
      |                          ^~
      |                          |
      |                          uint16_s
prog.c:21:26: note: expected 'uint32_s' but argument is of type 'uint16_s'
   21 | uint32_s xxfunc(uint32_s x, uint32_s y)
      |                 ~~~~~~~~~^
prog.c:31:30: error: incompatible type for argument 2 of 'xxfunc'
   31 |     uint32_s cc = xxfunc(aa, bb);
      |                              ^~
      |                              |
      |                              int32_s
prog.c:21:38: note: expected 'uint32_s' but argument is of type 'int32_s'
   21 | uint32_s xxfunc(uint32_s x, uint32_s y)
      |                             ~~~~~~~~~^
Exit Code:
1