编程中出现 variable poweroff_flag is used as a constant Recommend declaring variable as either static const or const是什么意思
这个警告的意思是,在程序中使用了变量"poweroff_flag"作为常量,但是它没有被声明为常量。建议将变量声明为"static const"或"const",这样可以更好地表达它是一个常量,避免在程序中被意外地修改。
原文地址: https://www.cveoy.top/t/topic/fcHY 著作权归作者所有。请勿转载和采集!