-Wformat-truncation=1 -Wformat启用的-Wformat-truncation的 Level 1采用了一种保守的方法,只警告对有界函数的调用,该函数的返回值未使用,并且很可能导致输出截断。 -Wformat-truncation=2 级别2还警告对使用返回值的有界函数的调用,并且在给定足够长度或幅度的参数时可能导致截断。 -Wformat-y2k 如果指定了-Wformat ...
-Wenum-int-mismatch (C and Objective-C only) -Wformat=1 -Wformat-contains-nul -Wformat-diag -Wformat-extra-args -Wformat-overflow=1 -Wformat-truncation=1 -Wformat-zero-length -Wframe-address -Wimplicit (C and Objective-C only) -Wimplicit-function-declaration (C and Objective-C only) -Wi...
-Wformat-extra-args 当传递给格式字符串的参数太多时给出警告 -Wformat-nonliteral 当格式字符串不是字面值时给出警告 -Wformat-security 当使用格式字符串的函数可能导致安全问题时给出警告 -Wformat-y2k 当 strftime 格式给出 2位记年时给出警告 -Wformat-zero-length 对长度为 0 的格式字符串给出警告 -Wform...
-Wformat-extra-args 当传递给格式字符串的参数太多时给出警告 -Wformat-nonliteral 当格式字符串不是字面值时给出警告 -Wformat-security 当使用格式字符串的函数可能导致安全问题时给出警告 -Wformat-y2k 当 strftime 格式给出 2 位记年时给出警告 -Wformat-zero-length 对长度为 0 的格式字符串给出警告 -Wfo...
-Wcharacter-truncation 对被截断的字符表达式给出警告 -Wclobbered 对能为"longjmp"或"vfork"所篡改的变量给出警告 -Wcomment 对可能嵌套的注释和长度超过一个物理行长的C++ 注释给出警告 -Wcomments -Wcomment 的同义词 -Wconversion 当隐式类型转换可能改变值时给出警告 ...
-Wformat-nonliteral 当格式字符串不是字面值时给出警告 -Wformat-security 当使用格式字符串的函数可能导致安全问题时给出警告 -Wformat-y2k 当 strftime 格式给出 2 位记年时给出警告 -Wformat-zero-length 对长度为 0 的格式字符串给出警告 -Wformat= 此开关缺少可用文档 ...
Wformat-contains-nul -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-signedness - Wformat-y2k -Wformat-zero-length -Wfree-nonheap-object -Wfunction-elimination -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wimplicit-interface -Wimplicit-procedure -...
Wformat -Wformat=2 -Wno-format-contains-nul -Wno-format-extra-args -Wformat-nonliteral -Wformat-overflow=n -Wformat-security -Wformat-signedness -Wformat-truncation=n -Wformat-y2k -Wframe-address -Wframe-larger-than=len -Wno-free-nonheap-object -Wjump-misses-init -Wignored-qualifiers -W...
[-Wformat-truncation=] snprintf(config_item, sizeof(config_item), "%s%s", format, config_name); ^~ opencl_common.c:884:23: (tmp_value = cfg_get_param(SECTION_OPTIONS, SUBSECTION_OPENCL, ~~~ opencl_get_config_name(fmt_base_name, LWS_CONFIG_NAME))) ~~~ In file included from /...
Wformat -Wformat=2 -Wno-format-contains-nul -Wno-format-extra-args -Wformat-nonliteral -Wformat-overflow=n -Wformat-security -Wformat-signedness -Wformat-truncation=n -Wformat-y2k -Wframe-address -Wframe-larger-than=byte-size -Wno-free-nonheap-object -Wno-if-not-aligned -Wno-ignored-...