octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No warning for unused variables?


From: LachlanA
Subject: Re: No warning for unused variables?
Date: Sun, 17 Jan 2016 18:01:55 -0800 (PST)

Rik,

The reason gcc doesn't warn about unused classes is probably that calling
the constructor itself may be a "use" if it has side effects.

If noone reports a tool, you could try one of these:

(Really ugly)  #define the class name(s) to "int", and grep through the
(huge number of) resulting errors for "unused variable".  I know it's
ugly...

(Some effort, you could delegate :) write something to count the number of
identical strings of [a-zA-Z_0-9] within each pair of { }, and check when
the number is 1.

Lachlan



--
View this message in context: 
http://octave.1599824.n4.nabble.com/No-warning-for-unused-variables-tp4674407p4674420.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]