Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C

Compiler

clang HEAD 8.0.0 (https://github.com/llvm-mirror/clang.git ddde3eeaec53ab9a70aed964f1cbf7713a856eb1) (https://github.com/llvm-mirror/llvm.git b96b37dc8fb417dc4123246d7bfd910789de810a)

Options
Warnings
C11(GNU)
no pedantic

Author

anonymous

almost 7 years ago

$ clang prog.c -Wall -Wextra -std=gnu11
prog.c:24:16: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'int (*)[100]' [-Wint-conversion]
  x= Symmetrie(square_matrix[4][4]);
               ^~~~~~~~~~~~~~~~~~~
prog.c:5:20: note: passing argument to parameter 'matrix' here
int Symmetrie (int matrix[][max]) {
                   ^
prog.c:24:16: warning: array index 4 is past the end of the array (which contains 4 elements) [-Warray-bounds]
  x= Symmetrie(square_matrix[4][4]);
               ^             ~
prog.c:19:3: note: array 'square_matrix' declared here
  int  square_matrix[][max]={{1,2,3,4}
  ^
2 warnings generated.
0
Exit Code:
0