我有这个功能:
int firstHeapArray (IntHeapArray h) {
if(!emptyHeapArray(h))
return h.array[0];
}
它被声明为 int,这是 IntHeapArray 结构:
typedef struct intHeapArray {
int *array;
int size;
} IntHeapArray;
你能说为什么我在编译时收到这个警告吗?
heap-test.c: In function ‘firstHeapArray’:
heap.h:31:1: warning: control reaches end of non-void function
非常感谢你。