我正在尝试在 Workbench 中编译以下简单代码:
 1. typedef float matrixType[3][3]
 2.     
 3. void my_func(matrixType matrix)
 4. {
 5.     printf("matrix[0][0] = %g\n",matrix[0][0]);
 6. }
 7. 
 8. void main()
 9. {
10.     matrixType my_matrix = {{0,1,2},{3,4,5},{6,7,8}};
11.     matrixType* ptr_matrix = &my_matrix;
12. 
13.     my_func(*ptr_matrix);
14. }
我收到以下警告:
test.c:13: warning: passing arg 1 of `my_func' from incompatible pointer type
我不明白,我做错了什么。在 Visual Studio 中编译相同代码时没有任何警告,但在 Workbench 中出现问题。
谢谢。