使用 clang 编译器编译过程中,会出现如下类型编译错误:

-Wformat-nonliteral
-Wstrncat-size
-Wstrict-prototypes

故在 spec 文件中指定仅当使用 clang 编译器时忽略上述错误,添加了以下 flag:

-Wno-error=format-nonliteral
-Wno-error=strncat-size
-Wno-error=strict-prototypes