这是代码行:这个夹板警告的含义是什么,我可能会做错什么?
bool cpfs_utimens(struct Cpfs *, char const *path, struct timespec const[2]);
运行夹板3.1.2生成此警告:
cpfs.h:21:74: Function parameter times declared as manifest array (size
constant is meaningless)
A formal parameter is declared as an array with size. The size of the array
is ignored in this context, since the array formal parameter is treated as a
pointer. (Use -fixedformalarray to inhibit warning)
命名参数都没有区别。
我不知道,如果撇号挑剔是SO天经地义的事,但你可能是指“指针“,如在指针的复数中,而不是”指针的“,如在属于指针的东西中。反正有upmod。 – 2010-09-07 03:39:49
这看起来不错。我总是觉得固定大小的数组实际上是按值传递的。一个小问题:这是C而不是C++。 – 2010-09-07 03:41:19
不,任何数组都作为指向其第一个条目的指针传递。 – 2010-09-07 03:43:20