# HG changeset patch # User Ingo von Borstel # Date 2018-07-07 16:48:17 # Node ID fd6db8cd9eeca6f8d0e3c3b5631acd0cbcb49dc8 # Parent dda8dc67ed5a86f73305ca394f7996c224f21f46 Fix #6844: Compile warning when compiling dedicated server (#6849) diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp --- a/src/gfx_layout.cpp +++ b/src/gfx_layout.cpp @@ -671,7 +671,9 @@ Layouter::Layouter(const char *str, int } 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(line, str, state);