Browse - Programming Tips - warning C4101: 'myvariable' : unreferenced local variable

Date: 2018jul24
Platform: Windows
Product: MSVC
Language: C/C++

Q.  warning C4101: 'myvariable' : unreferenced local variable
How to avoid this message?

A.  Of course, you can use the variable somewhere in your code.

Or do:

#pragma warning(disable:4101)