我试图使C编译器clang进入ANSI C89模式,但没有成功。下面是一个示例会话:#include <stdio.h>
{ return 0;$ gcc -pedantic-std=c89 -Wall t.ct.c:5:7: warning: ISO C does not support ‘__FUNCTION__’predefined ide
*’, but argument 2 has type ‘int *’ [-Wformat=]因为我没有在(void*)之前添加&x强制转换,因为%p在编译时需要一个-std=c99gcc SO.c -o so -Wall -Wextra -pedantic -std=c89
GCC(在我的个人电脑中),不是发出警告,而编译(在我的个人电脑中)<e