From cea71fbfccbc417c603366fd8256e9e2ded220d5 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 2 Aug 2024 18:55:30 -0700
Subject: [PATCH] SDL_cocoakeyboard: Fix errant semicolons in sendPendingKey
and clearPendingKey definitions
- These are ignored by Clang but produce a warning: "semicolon before method body is ignored"
---
build-scripts/pkg-support/android/__main__.py | 0
src/video/cocoa/SDL_cocoakeyboard.m | 4 ++--
2 files changed, 2 insertions(+), 2 deletions(-)
mode change 100644 => 100755 build-scripts/pkg-support/android/__main__.py
diff --git a/build-scripts/pkg-support/android/__main__.py b/build-scripts/pkg-support/android/__main__.py
old mode 100644
new mode 100755
diff --git a/src/video/cocoa/SDL_cocoakeyboard.m b/src/video/cocoa/SDL_cocoakeyboard.m
index 1bc0664da7ed8..977c23e93ca72 100644
--- a/src/video/cocoa/SDL_cocoakeyboard.m
+++ b/src/video/cocoa/SDL_cocoakeyboard.m
@@ -203,7 +203,7 @@ - (void)setPendingKey:(int)rawcode scancode:(SDL_Scancode)scancode timestamp:(Ui
_pendingTimestamp = timestamp;
}
-- (void)sendPendingKey;
+- (void)sendPendingKey
{
if (_pendingRawCode < 0) {
return;
@@ -213,7 +213,7 @@ - (void)sendPendingKey;
[self clearPendingKey];
}
-- (void)clearPendingKey;
+- (void)clearPendingKey
{
_pendingRawCode = -1;
}