(1) -Wunused-function用来警告存在一个未使用的static函数的定义或者存在一个只声明却未定义的static函数,参见下面例子中的func1和func2;(2) -Wunused-label用来警告存在一个使用了却未定义或者存在一个定义了却未使用的label,参加下面例子中的func3和func7;(3) -Wunused-variable用来警告存在一个定义了却未使用的...
-Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-const-variable -Wunused-const-variable= -Wunused-dummy-argument -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-macros -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wuninitialized 选项: 变量不初始化...
(1) -Wunused-function用来警告存在一个未使用的static函数的定义或者存在一个只声明却未定义的static函数,参见下面例子中的func1和func2; (2) -Wunused-label用来警告存在一个使用了却未定义或者存在一个定义了却未使用的label,参加下面例子中的func3和func7; (3) -Wunused-variable用来警告存在一个定义了却未使...
某些选项(如-Wall和-Wextra )会打开其他选项,例如-Wunused ,这可能会启用其他选项,例如-Wunused-value 。 -Wall (gcc -Wall详解_jiedu_新浪博客) 该选项相当于同时使用了下列所有的选项: ◆unused-function:遇到仅声明过但尚未定义的静态函数时发出警告。 ◆unused-label:遇到声明过但不使用的标号的警告。 ◆unuse...
-Wunused-function 有未使用的函数时警告 -Wunused-label 有未使用的标号时警告 -Wunused-macros 当定义在主文件中的宏未被使用时给出警告 -Wunused-parameter 发现未使用的函数指针时给出警告 -Wunused-result 当一个带有 warn_unused_result 属性的函数的调用者未使用前者的返回值时给出警告 ...
-Wunused-function 有未使用的函数时警告 -Wunused-label 有未使用的标号时警告 -Wunused-macros 当定义在主文件中的宏未被使用时给出警告 -Wunused-parameter 发现未使用的函数指针时给出警告 -Wunused-result 当一个带有 warn_unused_result 属性的函数的调用者未使用前者的返回值时给出警告 ...
(1)-Wunused-function用来警告存在一个未使用的static函数的定义或者存在一个只声明却未定义的static函数,参见下面例子中的func1和func2; (2)-Wunused-label用来警告存在一个使用了却未定义或者存在一个定义了却未使用的label,参加下面例子中的func3和func7; ...
-Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wvolatile-register-var 但不要被它的表面意思迷惑,要不,怎么还会有-Wextra呢。-Wextra包括(有几个选项重复了,不懂原因): [html] view plain copy-Wclobbered -Wempty-body -Wignored-qualifiers ...
C:\c_test_root\PA_HLtest_NO-pause_dB_done.c:27:12: warning: 'audioCallback_OK' defined but not used [-Wunused-function] 27 | static int audioCallback_OK(const void* inputBuffer, void* outputBuffer, unsigned long framesPerBuffer, const PaStreamCallbackTimeInfo* timeInfo, PaStreamCallba...
-Wunused-function 有未使用的函数时警告 -Wunused-label 有未使用的标号时警告 -Wunused-macros 当定义在主文件中的宏未被使用时给出警告 -Wunused-parameter 发现未使用的函数指针时给出警告 -Wunused-result 当一个带有 warn_unused_result 属性的函数的调用者未使用前者的返回值时给出警告 ...