Community
cancel
Showing results for 
Search instead for 
Did you mean: 
James_Hancox
Beginner
90 Views

Unused variables on windows

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
90 Views


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

Judy
James_Hancox
Beginner
90 Views

That's perfect! Thanks!
dpeterc
Beginner
90 Views

I use icc on Linux and wonder why -Wall does not include -Wunused-variable ?
On gcc it does.
Reply