SDL: Fix warnings: extra semi - spurious (#15014)

From 6f754e5c031794a7e3eb9a319b997b1e0ca0b610 Mon Sep 17 00:00:00 2001
From: RaceTheMaSe <[EMAIL REDACTED]>
Date: Mon, 9 Feb 2026 20:48:58 +0100
Subject: [PATCH] Fix warnings: extra semi - spurious (#15014)

---
 src/dialog/SDL_dialog.c                    | 2 +-
 src/dialog/android/SDL_androiddialog.c     | 2 +-
 src/dialog/unix/SDL_zenitydialog.c         | 4 ++--
 src/dialog/windows/SDL_windowsdialog.c     | 2 +-
 src/filesystem/windows/SDL_sysfilesystem.c | 4 ++--
 src/video/wayland/SDL_waylandevents.c      | 2 +-
 src/video/x11/SDL_x11messagebox.c          | 2 +-
 test/testautomation_surface.c              | 2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/dialog/SDL_dialog.c b/src/dialog/SDL_dialog.c
index 817df38204ba7..337cba301a01c 100644
--- a/src/dialog/SDL_dialog.c
+++ b/src/dialog/SDL_dialog.c
@@ -60,7 +60,7 @@ void SDL_ShowFileDialogWithProperties(SDL_FileDialogType type, SDL_DialogFileCal
         SDL_SetError("Unsupported file dialog type: %d", (int) type);
         callback(userdata, NULL, -1);
         break;
-    };
+    }
 #endif
 }
 
diff --git a/src/dialog/android/SDL_androiddialog.c b/src/dialog/android/SDL_androiddialog.c
index 705a0d5002406..49b42420e1801 100644
--- a/src/dialog/android/SDL_androiddialog.c
+++ b/src/dialog/android/SDL_androiddialog.c
@@ -49,7 +49,7 @@ void SDL_SYS_ShowFileDialogWithProperties(SDL_FileDialogType type, SDL_DialogFil
         SDL_Unsupported();
         callback(userdata, NULL, -1);
         return;
-    };
+    }
 
     if (!Android_JNI_OpenFileDialog(callback, userdata, filters, nfilters, is_save, allow_many)) {
         // SDL_SetError is already called when it fails
diff --git a/src/dialog/unix/SDL_zenitydialog.c b/src/dialog/unix/SDL_zenitydialog.c
index e34434feb5080..6cd310ed93477 100644
--- a/src/dialog/unix/SDL_zenitydialog.c
+++ b/src/dialog/unix/SDL_zenitydialog.c
@@ -74,7 +74,7 @@ static bool get_x11_window_handle(SDL_PropertiesID props, char *out)
     }
     if (SDL_snprintf(out, X11_HANDLE_MAX_WIDTH, "0x%" SDL_PRIx64, handle) >= X11_HANDLE_MAX_WIDTH) {
         return false;
-    };
+    }
     return true;
 }
 
@@ -156,7 +156,7 @@ static zenityArgs *create_zenity_args(SDL_FileDialogType type, SDL_DialogFileCal
     case SDL_FILEDIALOG_OPENFOLDER:
         argv[argc++] = "--directory";
         break;
-    };
+    }
 
     if (args->filename) {
         argv[argc++] = "--filename";
diff --git a/src/dialog/windows/SDL_windowsdialog.c b/src/dialog/windows/SDL_windowsdialog.c
index b3d86c53a1176..631fff5c1895e 100644
--- a/src/dialog/windows/SDL_windowsdialog.c
+++ b/src/dialog/windows/SDL_windowsdialog.c
@@ -1287,5 +1287,5 @@ void SDL_SYS_ShowFileDialogWithProperties(SDL_FileDialogType type, SDL_DialogFil
     case SDL_FILEDIALOG_OPENFOLDER:
         ShowFolderDialog(callback, userdata, window, default_location, allow_many, title, accept, cancel);
         break;
-    };
+    }
 }
diff --git a/src/filesystem/windows/SDL_sysfilesystem.c b/src/filesystem/windows/SDL_sysfilesystem.c
index f2c59f4f2f6c3..48b6d1d68fcd5 100644
--- a/src/filesystem/windows/SDL_sysfilesystem.c
+++ b/src/filesystem/windows/SDL_sysfilesystem.c
@@ -234,7 +234,7 @@ char *SDL_SYS_GetUserFolder(SDL_Folder folder)
         default:
             SDL_SetError("Invalid SDL_Folder: %d", (int)folder);
             goto done;
-        };
+        }
 
         hr = pSHGetKnownFolderPath(&type, 0x00008000 /* KF_FLAG_CREATE */, NULL, &path);
         if (SUCCEEDED(hr)) {
@@ -296,7 +296,7 @@ char *SDL_SYS_GetUserFolder(SDL_Folder folder)
         default:
             SDL_SetError("Unsupported SDL_Folder on Windows before Vista: %d", (int)folder);
             goto done;
-        };
+        }
 
         // Create the OS-specific folder if it doesn't already exist
         type |= CSIDL_FLAG_CREATE;
diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c
index b1d7fe07fe65c..b8fb8e0a42472 100644
--- a/src/video/wayland/SDL_waylandevents.c
+++ b/src/video/wayland/SDL_waylandevents.c
@@ -1066,7 +1066,7 @@ static void pointer_handle_button(void *data, struct wl_pointer *pointer, uint32
         Wayland_UpdateImplicitGrabSerial(seat, serial);
     }
 
-    seat->pointer.pending_frame.timestamp_ns = Wayland_GetPointerTimestamp(seat, time);;
+    seat->pointer.pending_frame.timestamp_ns = Wayland_GetPointerTimestamp(seat, time);
 
     if (wl_seat_get_version(seat->wl_seat) >= WL_POINTER_FRAME_SINCE_VERSION) {
         if (state_w) {
diff --git a/src/video/x11/SDL_x11messagebox.c b/src/video/x11/SDL_x11messagebox.c
index 489689692e563..251079a5d53ed 100644
--- a/src/video/x11/SDL_x11messagebox.c
+++ b/src/video/x11/SDL_x11messagebox.c
@@ -94,7 +94,7 @@ static void X11_PositionMessageBox(SDL_MessageBoxX11 *controls, int *wp, int *hp
             controls->icon->rect.x = 0;
         } else {
             controls->message->rect.x = 0;    
-            controls->icon->rect.x = controls->message->rect.w + SDL_TOOLKIT_X11_ELEMENT_PADDING_2  * controls->window->iscale;;
+            controls->icon->rect.x = controls->message->rect.w + SDL_TOOLKIT_X11_ELEMENT_PADDING_2  * controls->window->iscale;
         }
         
         if (controls->message->rect.h > controls->icon->rect.h) {
diff --git a/test/testautomation_surface.c b/test/testautomation_surface.c
index 227a86aee603b..09430748878fe 100644
--- a/test/testautomation_surface.c
+++ b/test/testautomation_surface.c
@@ -1655,7 +1655,7 @@ static int surface_testSetGetSurfaceClipRect(void *args)
     }
     SDL_DestroySurface(s);
     return TEST_COMPLETED;
-};
+}
 
 static int SDLCALL surface_testFlip(void *arg)
 {