Fix #6844: Compile warning when compiling dedicated server (#6849)

This commit is contained in:
Ingo von Borstel 2018-07-07 18:48:17 +02:00 committed by GitHub
parent 2ed0e30a8f
commit 88b77a7883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -671,7 +671,9 @@ Layouter::Layouter(const char *str, int maxw, TextColour colour, FontSize fontsi
} else {
/* Line is new, layout it */
FontState old_state = state;
#if defined(WITH_ICU_LAYOUT) || defined(WITH_UNISCRIBE)
const char *old_str = str;
#endif
#ifdef WITH_ICU_LAYOUT
GetLayouter<ICUParagraphLayoutFactory>(line, str, state);