Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Unused variables on windows

James_Hancox
Beginner
171 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
171 Views

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

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