diff options
author | Robert Adam <dev@robert-adam.de> | 2022-04-26 13:07:55 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2022-04-26 13:07:55 +0300 |
commit | 33ccf4177ad021b17f09ba584fff0f6d330da4c2 (patch) | |
tree | e84bc4c29fe7b5d8b4bc17c64db430d62259e745 /src | |
parent | 052ce3144f42f4f64678e5da0e906914bc46b579 (diff) |
BUILD(client): Fix warning about unused variable
When building on a Mac -Doverlay=OFF, the compiler would produce a
warning about an unused variable in the macOS shortcut implementation.
This commit silences the warning, by explicitly marking the variable in
question as unused.
Fixes #5636
Diffstat (limited to 'src')
-rw-r--r-- | src/mumble/GlobalShortcut_macx.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mumble/GlobalShortcut_macx.mm b/src/mumble/GlobalShortcut_macx.mm index 6df63e25c..9f4d9807e 100644 --- a/src/mumble/GlobalShortcut_macx.mm +++ b/src/mumble/GlobalShortcut_macx.mm @@ -119,6 +119,9 @@ CGEventRef GlobalShortcutMac::callback(CGEventTapProxy proxy, CGEventType type, [pool release]; return nullptr; } +#else + // Mark forward as unused in this case + (void) forward; #endif return suppress ? nullptr : event; } |