diff options
author | Ingo von Borstel <github@planetmaker.de> | 2018-07-07 18:48:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-07 18:48:17 +0200 |
commit | 88b77a7883a195cd97d250f1582122fe0dd41e27 (patch) | |
tree | 1fd7600240c4d0fd4974244c9758ae5ec9adab4c /src | |
parent | 2ed0e30a8fd37173ef16bf3eca2f615a56550a1e (diff) | |
download | openttd-88b77a7883a195cd97d250f1582122fe0dd41e27.tar.xz |
Fix #6844: Compile warning when compiling dedicated server (#6849)
Diffstat (limited to 'src')
-rw-r--r-- | src/gfx_layout.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<ICUParagraphLayoutFactory>(line, str, state); |