Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 5 years ago

Language

C

Compiler

gcc 10.1.0

Options
Warnings
Optimization
Compiler Default
no pedantic

Author

anonymous

about 5 years ago

$ gcc prog.c -Wall -Wextra -O2 -march=native
prog.c: In function 'main':
prog.c:15:17: warning: passing argument 2 of 'xxfunc' from incompatible pointer type [-Wincompatible-pointer-types]
   15 |     xxfunc(&cc, &aa, &bb);
      |                 ^~~
      |                 |
      |                 uint16_t * {aka short unsigned int *}
prog.c:5:42: note: expected 'const uint32_t *' {aka 'const unsigned int *'} but argument is of type 'uint16_t *' {aka 'short unsigned int *'}
    5 | void xxfunc(uint32_t* z, const uint32_t* x, const uint32_t* y)
      |                          ~~~~~~~~~~~~~~~~^
prog.c:15:22: warning: pointer targets in passing argument 3 of 'xxfunc' differ in signedness [-Wpointer-sign]
   15 |     xxfunc(&cc, &aa, &bb);
      |                      ^~~
      |                      |
      |                      int32_t * {aka int *}
prog.c:5:61: note: expected 'const uint32_t *' {aka 'const unsigned int *'} but argument is of type 'int32_t *' {aka 'int *'}
    5 | void xxfunc(uint32_t* z, const uint32_t* x, const uint32_t* y)
      |                                             ~~~~~~~~~~~~~~~~^
1000 + 6000 = 7000
Exit Code:
0