Wiimote: Cleanup warnings of -Wmissing-variable-declarations

While I am here, make g_wiimote_scanner as static as well.
This commit is contained in:
Jun Su 2020-03-23 16:43:21 +08:00
parent 62707986b7
commit 0bd6016ad0
2 changed files with 2 additions and 3 deletions

View File

@ -69,9 +69,9 @@ struct WiimotePoolEntry
// Connected wii remotes are placed here when no open slot is set to "Real".
// They are then automatically disconnected after some time.
std::vector<WiimotePoolEntry> g_wiimote_pool;
static std::vector<WiimotePoolEntry> g_wiimote_pool;
WiimoteScanner g_wiimote_scanner;
static WiimoteScanner g_wiimote_scanner;
// Attempt to fill a real wiimote slot from the pool or by stealing from ControllerInterface.
static void TryToFillWiimoteSlot(u32 index)

View File

@ -195,7 +195,6 @@ private:
// Mutex is recursive as ControllerInterface may call AddWiimoteToPool within ProcessWiimotePool.
extern std::recursive_mutex g_wiimotes_mutex;
extern WiimoteScanner g_wiimote_scanner;
extern std::unique_ptr<Wiimote> g_wiimotes[MAX_BBMOTES];
void AddWiimoteToPool(std::unique_ptr<Wiimote>);