enforce compiler warning/error, when (*desc*) variable usage not anticipated
This commit is contained in:
parent
82d623a35a
commit
493e975d35
|
|
@ -1148,7 +1148,7 @@ inline double _d1_pow(double x,double y) { return (x==0.0)?0.0:((log(x)/exp(0.
|
|||
<admst:variable name="e" select="pInst->%(name)"/>
|
||||
</admst:when>
|
||||
<admst:when test="attribute[name='desc']">
|
||||
<admst:variable name="e" select="ckt->CKTstate0[((GENinstance*)here)->GENstate + %(name)]"/>
|
||||
<admst:variable name="e" select="ckt->CKTstate0[((GENinstance*)here)->GENstate + hide_%(name)]"/>
|
||||
</admst:when>
|
||||
<admst:otherwise>
|
||||
<admst:variable name="e" select="%(name)"/>
|
||||
|
|
@ -2368,7 +2368,7 @@ inline double _d1_pow(double x,double y) { return (x==0.0)?0.0:((log(x)/exp(0.
|
|||
</admst:for-each>
|
||||
<admst:choose>
|
||||
<admst:when test="lhs/attribute[name='desc']">
|
||||
<admst:text format="ckt->CKTstate0[((GENinstance*)here)->GENstate + %(lhs/name)]=$allep; /* indeed 3 */\n"/>
|
||||
<admst:text format="ckt->CKTstate0[((GENinstance*)here)->GENstate + hide_%(lhs/name)]=$allep; /* indeed 3 */\n"/>
|
||||
</admst:when>
|
||||
<admst:otherwise>
|
||||
<admst:text format="%(lhs/name)=$allep; /* indeed 3 */\n"/>
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ int $(module)ask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value,
|
|||
<admst:choose>
|
||||
<admst:when test="[type='real']">
|
||||
case $(module)_ask_%(name) :
|
||||
value->rValue = ckt->CKTstate0[inst->GENstate + %(name)];
|
||||
value->rValue = ckt->CKTstate0[inst->GENstate + hide_%(name)];
|
||||
return OK;
|
||||
</admst:when>
|
||||
<admst:otherwise>
|
||||
|
|
|
|||
|
|
@ -259,7 +259,8 @@ enum {
|
|||
<admst:for-each select="variable">
|
||||
<admst:if test="attribute[name='desc']">
|
||||
<admst:if test="[not((input='yes' and (parametertype='model' or parametertype='instance')) or (input='np' and (scope='global_model' or scope='global_instance')))]">
|
||||
%(name),
|
||||
hide_%(name),
|
||||
#define %(name) ((struct hides *)hide_%(name))
|
||||
</admst:if>
|
||||
</admst:if>
|
||||
</admst:for-each>
|
||||
|
|
|
|||
Loading…
Reference in New Issue