编译问题

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

编译问题

630 Views
qiang
Contributor I

您好有个很奇怪的问题,../source/main.c:317:16: warning: variable 'nThreadId' set but not used [-Wunused-but-set-variable]。

MCUXpresso IDE 编译器,我明明已经使用了变量,总是警告没使用

0 Kudos
1 Reply

626 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
非常感谢使用NXP产品,很高兴为你提供技术支持!
从warning信息来说,很容易判断声明的变量再代码运行中没有被使用,我的建议你可以先试试在debug时设置断点,确认是否真的再代码中使用了该变量
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos