Martin von Loewis
Tue Jun 2 14:37:00 GMT 1998
[unused variable with non-trivial constructor]
> It should be an expected warning, methinks.
For 'normal' unused warnings, it means that you can remove the unused
thing without effecting the semantics. In this case, removing the
variable will give a different execution.
In that sense, the variable is certainly used in the program, even
though the warning complies with its documentation. If you want
strictly to follow that documentation, just put // WARNING in there.
More information about the Gcc-patches