Skip to content

Commit

Permalink
Wiimote: Cleanup warnings of -Wmissing-variable-declarations
Browse files Browse the repository at this point in the history
While I am here, make g_wiimote_scanner as static as well.
  • Loading branch information
howard0su committed Mar 23, 2020
1 parent 6270798 commit 0bd6016
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/HW/WiimoteReal/WiimoteReal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Core/HW/WiimoteReal/WiimoteReal.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ class WiimoteScanner

// 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>);
Expand Down

0 comments on commit 0bd6016

Please sign in to comment.