From 4b5c86ee47ce167004da6f33af7d55d0840a5cad Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Thu, 2 Nov 2017 18:42:38 +0100 Subject: [PATCH] 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 --- src/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 4a20232..2fd89d7 100644 --- a/src/config.c +++ b/src/config.c @@ -579,8 +579,9 @@ static Bool subDeprecatedOption( TidyDocImpl* doc, ctmbstr oldName, ctmbstr oldV } else { + ctmbstr val; 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 ); } }