Small fix to compile with MSVC10, exposed in #636
MSVC10 2010 enforces K&R C that all variables must be declared before code in any given context. Unable to fix a gcc option that will expose this... modified: src/config.c
This commit is contained in:
parent
acd3c6c47e
commit
4b5c86ee47
|
@ -579,8 +579,9 @@ static Bool subDeprecatedOption( TidyDocImpl* doc, ctmbstr oldName, ctmbstr oldV
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
ctmbstr val;
|
||||||
TY_(SetOptionInt)( doc, newOptId, value );
|
TY_(SetOptionInt)( doc, newOptId, value );
|
||||||
ctmbstr val = tidyOptGetCurrPick( tdoc, newOptId );
|
val = tidyOptGetCurrPick( tdoc, newOptId );
|
||||||
TY_(Report)( doc, NULL, NULL, OPTION_REMOVED_APPLIED, oldName, newName, val );
|
TY_(Report)( doc, NULL, NULL, OPTION_REMOVED_APPLIED, oldName, newName, val );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue