Software Archive
Read-only legacy content
17060 Discussions

Warning for unused variables

Intel_C_Intel
Employee
506 Views
Is there a way to have the compiler warn me if a variable is defined, but never used?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
506 Views
This was added in 5.0C or D, I think. /warn:unused It's certainly in 6.0.

Steve
0 Kudos
Reply