File 0010-add-return-at-end-of-function.patch of Package tme

From d498f64d16b6a4b7665e51ba91649f543833846a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com>
Date: Thu, 3 Oct 2024 17:42:20 +0200
Subject: [PATCH 10/12] add return at end of function
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
---
 host/display/display.c         | 2 ++
 host/display/sdl/sdl-display.c | 1 +
 tmesh/tmesh.c                  | 1 +
 3 files changed, 4 insertions(+)

diff --git a/host/display/display.c b/host/display/display.c
index caf3683..6a66890 100644
--- a/host/display/display.c
+++ b/host/display/display.c
@@ -88,6 +88,7 @@ _tme_screen_update(struct tme_screen *screen) {
     }
 #endif
   }
+  return rc;
 }
 
 /* the generic display callout function.  it must be called with the mutex locked: */
@@ -474,6 +475,7 @@ _tme_screen_configure(struct tme_screen *screen)
     conn_fb->tme_fb_connection_height = height;
     conn_fb->tme_fb_connection_buffsz = 0;
   }
+  return 0;
 }
 
 /* this is called for a mode change: */
diff --git a/host/display/sdl/sdl-display.c b/host/display/sdl/sdl-display.c
index 8eeb959..d8f538d 100644
--- a/host/display/sdl/sdl-display.c
+++ b/host/display/sdl/sdl-display.c
@@ -366,6 +366,7 @@ _tme_sdl_display_update(struct tme_display *display) {
     }
     return TRUE;
   }
+  return FALSE;
 }
   
 /* the new SDL display function: */
diff --git a/tmesh/tmesh.c b/tmesh/tmesh.c
index a9779c2..b4ab4d8 100644
--- a/tmesh/tmesh.c
+++ b/tmesh/tmesh.c
@@ -430,6 +430,7 @@ int _tmesh_eval() {
       tme_free(output);
     }
   }
+  return 0;
 }
 
 /* our thread: */
-- 
2.47.0

openSUSE Build Service is sponsored by