From 88b77a7883a195cd97d250f1582122fe0dd41e27 Mon Sep 17 00:00:00 2001 From: Ingo von Borstel Date: Sat, 7 Jul 2018 18:48:17 +0200 Subject: Fix #6844: Compile warning when compiling dedicated server (#6849) --- src/gfx_layout.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp index 0a9f5a0b1..bb7efa2d7 100644 --- a/src/gfx_layout.cpp +++ b/src/gfx_layout.cpp @@ -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(line, str, state); -- cgit v1.2.3-70-g09d2