esp-mdf icon indicating copy to clipboard operation
esp-mdf copied to clipboard

可以消除一下两个编译unused warning吗

Open fzboffice opened this issue 2 years ago • 1 comments

分别是: mwifi.c:43:21: warning: 'g_waive_root_timer' defined but not used [-Wunused-variable] mconfig_blufi.c:170:13: warning: 'combine_ap_mesh_password' defined but not used [-Wunused-function]

fzboffice avatar Apr 21 '22 02:04 fzboffice

@fzboffice 非常感谢你的提议。你可以先将其 加一个宏定义来进行控制,后面更新会将其这部分代码里加上的。

  1. 'g_waive_root_timer' defined but not used
  • 这个你是将其kconfig 配置https://github.com/espressif/esp-mdf/blob/master/components/mwifi/Kconfig#L155取消使能了,从而导致的这样的警告。
  1. 'combine_ap_mesh_password' defined but not used
  • 这个是因为你将其 mesh_password加密取消使能了,从而导致了这样的警告发生。

如果你不想要这样的功能的话,是可以将其直接代码里面屏蔽掉的,从而既不会再有这样的警告了。

Jiangyafeng avatar Apr 21 '22 14:04 Jiangyafeng