This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: eb78


[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.

Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]