5.8.6.4. Options to Request or Suppress Warnings
5.8.6.4. 请求或抑制警告的选项
Warnings are diagnostic messages that report constructions which are not inherently erroneous but which are risky or suggest there may have been an error. The following language-independent options do not enable specific warnings but control the kinds of diagnostics produced by the OpenCL compiler. These options are ignored for programs created with IL.
警告是诊断信息,报告的结构本身没有错误,但有风险或表明可能存在错误。以下独立于语言的选项不启用特定的警告,但控制OpenCL编译器生成的诊断类型。对于使用IL创建的程序,这些选项将被忽略。
-w
Inhibit all warning messages.
禁止所有警告消息。
-Werror
Make all warnings into errors.
将所有警告变成错误。