task(); return x;{} 在-std=c++17 -Wall -pedantic编译的gcc 9.3上,它发出警告warning: variable 'task' set but not used [-Wunused-but-set-variable]
4 | auto task = [&](){ ++x; }; 但在较新的gcc版本中,不会出现这样的警告。请注意,根据manual,-Wall启
我必须扫描同一行,以获得数组的可变输入量(用户选择要使用多少输入)。我得做一个字符,一个整数和一个浮点.#include <stdio.h> int ranNum1, ranNum2, ranNum3, ranNum4, playNum, ranPlay;
int index1, index2, in
在gcc 4.6.1中编译C源代码时,我收到了以下警告。warning: variable set but not used [-Wunused-but-set-variable]
我提到了这个链接,但我能确切地知道是什么导致了这个warning.Would,有谁能告诉我更多细节,是什么导致了这个警告,我们怎样才能摆脱它?编译程序会显示上述警告。你能建议我如何纠正它吗?
function ‘iterExternalEntityRefHandler’:xmlparser.c:832:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variablefunction ‘myEndCdataSectionHan
我收到了一个-Wunused-但-set-variable的警告,使用了以下代码的GCC v4.6: Sy_MatrixFuzzyHashablemesh.vertexNormals().size() - 1; i.normal = vMapper.value( wrapper );}warning: variable 'i' set but not used [-Wunuse
我一直试图在我的raspberry-pi上编译ffmpeg,但是它给了我很多警告,比如(codec是不推荐的),特别是在运行sudo make的时候。try_push_frame’:
libavfilter/vaf_spectrumsynth.c:370:19: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable这些警告可能会有什么问题?