或设置环境变量 c工程设置

export CFLAGS = “-Wno-error”

c++工程设置

export CXXFLAGS = “-Wno-error”