【发布时间】:2011-03-27 18:48:42
【问题描述】:
谁能告诉我,为什么在 blazes 中 GCC(例如 4.4.3)没有警告或错误调用空函数的错误?
void hello() {
}
int main( int argc, char* argv[] ) {
int test = 1234;
hello(test);
return 0;
}
(另见http://bytes.com/topic/c/answers/893146-gcc-doesnt-warn-about-calling-nullary-function-parameters)
【问题讨论】: