回复 7楼 gleerat
的确要注意警告,除非你心里已经完全了解这个警告,但这里确实是GCC的一个小问题。

My life is brilliant
extern void show(const int a[][10]);其实等效于:
extern void show(const int (*)[10]);
程序代码:int main(void)
{
const int (*a)[2];
const int b[2][2];
int c[2][2];
a = 0, a = a; // 这行代码只是为了消除提示 a 无用途的警告
a = b; // 正确
a = c; // GCC4 会警告
return 0;
}a = (const int (*)[10])b;