У меня есть следующие массивы:
char* mask[9];
int hSobelMask[9] = {
-1, -2, -1,
0, 0, 0,
1, 2, 1};
Я хочу дать указатель на этот массив для метода, подобного этому:
int H = applyMask(&mask, &hSobelMask);
Подпись функции applyMask - этоfolowing:
int applyMask(char** mask[9], int* sobelMask[9]);
Но я получаю следующее предупреждение компиляции:
demo.c: In function ‘customSobel’:
demo.c:232:7: warning: passing argument 1 of ‘applyMask’ from incompatible pointer type
demo.c:181:5: note: expected ‘char ***’ but argument is of type ‘char * (*)[9]’
demo.c:232:7: warning: passing argument 2 of ‘applyMask’ from incompatible pointer type
demo.c:181:5: note: expected ‘int **’ but argument is of type ‘int (*)[9]’
Что означает это предупреждение, как мне от него избавиться?