-Werror=declaration-after-statement makefile关闭此警告
在Makefile中,可以通过在编译选项中添加“-Wno-declaration-after-statement”来关闭此警告。例如:
CFLAGS = -Wall -Werror -Wno-declaration-after-statement
这将在编译时关闭“declaration-after-statement”警告。
原文地址: http://www.cveoy.top/t/topic/Iwp 著作权归作者所有。请勿转载和采集!