Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Unused variables on windows

James_Hancox
Beginner
376 Views
Hi, I'm compiling on windows, and doing a bit of cleaning up, at the moment looking for unused variables. I see there is an option-Wunused-variable for linux/mac, but can't find an equivalent for windows.
The same problem applies to finding uninitializedvariables, the command-check-uninit is listed for linux and mac, but no alternative for windows.

Any help with this is greatly appreciated.
Matt
0 Kudos
3 Replies
Judith_W_Intel
Employee
376 Views

Use/Qdiag-warning:177,593,869 for -Wunused-variable
Use/RTCu for -check-uninit

Judy
0 Kudos
James_Hancox
Beginner
376 Views
That's perfect! Thanks!
0 Kudos
dpeterc
Beginner
376 Views
I use icc on Linux and wonder why -Wall does not include -Wunused-variable ?
On gcc it does.
0 Kudos
Reply