Fix unused variable warning in clang. (nw)

This commit is contained in:
couriersud 2015-05-22 09:14:29 +02:00
parent 0328139e85
commit 3084d045fd

View File

@ -526,7 +526,8 @@ protected:
/* check for fourth terminal ... should be numeric net
* including "0" or start with "N" (ltspice)
*/
int nval =tt[4].as_long(&cerr);
// FIXME: we need a is_long method ..
ATTR_UNUSED int nval =tt[4].as_long(&cerr);
if ((!cerr || tt[4].startsWith("N")) && tt.count() > 5)
devs.add(nl_alloc(sp_dev_t, "QBJT", tt[0], tt[5]), false);
else