- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use/Qdiag-warning:177,593,869 for -Wunused-variable
Use/RTCu for -check-uninit
Judy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's perfect! Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use icc on Linux and wonder why -Wall does not include -Wunused-variable ?
On gcc it does.
On gcc it does.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page