为什么已经使用了该变量,却还是报unused
Main.cpp(2617,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2627,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2646,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2698,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2698,1): warning W8057: W8057 Parameter 'MousePos' is never used
Main.cpp(2707,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2723,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2741,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2740,1): warning W8004: W8004 'tempBmp' is assigned a value that is never used
Main.cpp(2817,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2817,1): warning W8057: W8057 Parameter 'Shift' is never used
Main.cpp(2828,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2828,1): warning W8057: W8057 Parameter 'Shift' is never used
Main.cpp(2840,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2840,1): warning W8057: W8057 Parameter 'Button' is never used
Main.cpp(2840,1): warning W8057: W8057 Parameter 'Shift' is never used
Main.cpp(2840,1): warning W8057: W8057 Parameter 'X' is never used
Main.cpp(2840,1): warning W8057: W8057 Parameter 'Y' is never used
Main.cpp(2849,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2856,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2872,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2886,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2898,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2911,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2921,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2942,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2964,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2971,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(2971,1): warning W8057: W8057 Parameter 'Shift' is never used
Main.cpp(2971,1): warning W8057: W8057 Parameter 'X' is never used
Main.cpp(2971,1): warning W8057: W8057 Parameter 'Y' is never used
Main.cpp(3022,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(3046,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(3046,1): warning W8057: W8057 Parameter 'Shift' is never used
Main.cpp(3053,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(3059,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(3065,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(3071,1): warning W8057: W8057 Parameter 'Sender' is never used
Main.cpp(3077,1): warning W8057: W8057 Parameter 'Sender' is never used
...
上面是部分,所有的变量实际上都有用到。
相关推荐
Go-unused是用来检查Go代码未使用的常量变量函数和类型的
unused是用来检查Go代码未使用的常量,变量,函数和类型的
__attribute__((unused))的妙用:如何优雅地处理未使用的变量与参数
本文深入探讨了__attribute__((unused))在C/C++开发中的妙用,帮助开发者优雅处理未使用的变量与参数。通过实际场景分析,介绍了如何利用这一特性消除编译器警告、保持API兼容性,并与调试代码、条件编译等高级技巧结合使用。文章还提供了跨平台兼容性解决方案和代码可读性最佳实践,是提升代码质量的实用指南。
sass-unused:在SASS文件集合中查找未使用的变量的实用程序
没用的 用于在SASS文件集合中查找未使用的变量,mixin和函数的实用程序。 用法 命令行 npm install -g sass-unused sass-unused ' src/**/*.scss ' 这将解析“ src”中的所有SASS文件,并打印已声明但未在其他地方引用的变量,函数和混合插件的标识符列表。 图书馆 var { findUnused } = require ( 'sass-unused' ) // "unused" is an object with keys for different types of SASS item // (variable, mixin, function etc.) listing unused items of that type. const unused = findUnused ( 'src/**/*.scss' ) ;
find-unused-sass-variables:查找未使用的Sass变量的简单工具
查找未使用的assass变量 一个检查目录中未使用的Sass变量的简单工具。 安装 npm install find-unused-sass-variables --save-dev 用法 find-unused-sass-variables folder [, folder2...] --ignore " $my -var, $my -second-var " # or fusv folder [, folder2...] API const fusv = require ( 'find-unused-sass-variables' ) // 'scss' is a folder let unused = fusv . find ( 'scss' ) // Array of unused variables console . log ( unused . unused ) ; //
Warning Unused variable - 未使用变量(解决办法).md
Warning Unused variable - 未使用变量(解决办法).md


VCL组件使用和开发
