Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C

Compiler

clang 7.0.0

Options
Warnings
Optimization
C11
-pedantic

Author

anonymous

over 6 years ago

$ clang prog.c -Wall -Wextra -O2 -march=native -std=c11 -pedantic
prog.c:7:18: warning: incompatible pointer types initializing 'int *' with an expression of type 'int (*)[3]' [-Wincompatible-pointer-types]
    int *p[3] = {a+0, a+1, a+2};
                 ^~~
prog.c:7:23: warning: incompatible pointer types initializing 'int *' with an expression of type 'int (*)[3]' [-Wincompatible-pointer-types]
    int *p[3] = {a+0, a+1, a+2};
                      ^~~
prog.c:7:28: warning: incompatible pointer types initializing 'int *' with an expression of type 'int (*)[3]' [-Wincompatible-pointer-types]
    int *p[3] = {a+0, a+1, a+2};
                           ^~~
prog.c:7:10: warning: unused variable 'p' [-Wunused-variable]
    int *p[3] = {a+0, a+1, a+2};
         ^
4 warnings generated.
Exit Code:
0