From 48113d064af5e9a85f0ea6d3f84adbcdd297974f Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 27 Jun 2021 00:48:51 +0200 Subject: [PATCH] Clang-tidy: readability-redundant-declaration --- Source/DiabloUI/text_draw.cpp | 2 +- Source/control.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/DiabloUI/text_draw.cpp b/Source/DiabloUI/text_draw.cpp index ce27d83f7..970e0ba79 100644 --- a/Source/DiabloUI/text_draw.cpp +++ b/Source/DiabloUI/text_draw.cpp @@ -10,7 +10,7 @@ namespace devilution { -extern SDL_Surface *pal_surface; + namespace { diff --git a/Source/control.cpp b/Source/control.cpp index 4d3cee1cd..e9bc4fc2b 100644 --- a/Source/control.cpp +++ b/Source/control.cpp @@ -85,7 +85,7 @@ uint8_t SplTransTbl[256]; int initialDropGoldValue; bool panbtndown; bool spselflag; -extern Keymapper keymapper; + extern std::array quickSpellActionIndexes; /** Map of hero class names */