Move STATIC_ASSERT statements.

This macro can only be used where a variable declaration is allowed,
the vxWorks compiler objects otherwise.
This commit is contained in:
Andrew Johnson
2010-04-20 17:13:54 -05:00
parent 20483795e4
commit 32e34f536c
3 changed files with 3 additions and 3 deletions

View File

@@ -95,6 +95,7 @@ static long writeValue(stringoutRecord *);
static long init_record(stringoutRecord *prec, int pass)
{
STATIC_ASSERT(sizeof(prec->oval)==sizeof(prec->val));
struct stringoutdset *pdset;
long status=0;
@@ -121,7 +122,6 @@ static long init_record(stringoutRecord *prec, int pass)
if( pdset->init_record ) {
if((status=(*pdset->init_record)(prec))) return(status);
}
STATIC_ASSERT(sizeof(prec->oval)==sizeof(prec->val));
strcpy(prec->oval,prec->val);
return(0);
}