warning: no previous extern declaration for non-static variable 'in' [-Wmissing-variable-declarations]

 

2.出现的原因及解决方法

这个警告是提示我们代码的可见性安全,建议我们把不需要被外部引用的变量加上static来修饰变量的可见性。所以我们只需要给变量加上static进行修饰即可。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
猜你喜欢
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
相关资源
相似解决方案