forked from pool/schismtracker
Jan Engelhardt
200fdf3ec7
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/schismtracker?expand=0&rev=79
40 lines
1.1 KiB
Diff
40 lines
1.1 KiB
Diff
From f3969bdd83f1d16a8cd1b78ed68b485b2e25d404 Mon Sep 17 00:00:00 2001
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: Wed, 29 May 2024 21:19:15 +0200
|
|
Subject: [PATCH] build: fix gcc warning for handle_text_input functions
|
|
|
|
page_loadinst.c: In function "file_list_handle_text_input":
|
|
page_loadinst.c:383:1: error: control reaches end of non-void function [-Werror=return-type]
|
|
---
|
|
schism/page_loadinst.c | 1 +
|
|
schism/page_loadsample.c | 1 +
|
|
2 files changed, 2 insertions(+)
|
|
|
|
diff --git a/schism/page_loadinst.c b/schism/page_loadinst.c
|
|
index 6b73cc74..9c209b87 100644
|
|
--- a/schism/page_loadinst.c
|
|
+++ b/schism/page_loadinst.c
|
|
@@ -380,6 +380,7 @@ static int file_list_handle_text_input(const uint8_t* text) {
|
|
return 1;
|
|
}
|
|
}
|
|
+ return 0;
|
|
}
|
|
|
|
static int file_list_handle_key(struct key_event * k)
|
|
diff --git a/schism/page_loadsample.c b/schism/page_loadsample.c
|
|
index 448913ee..00bcb43c 100644
|
|
--- a/schism/page_loadsample.c
|
|
+++ b/schism/page_loadsample.c
|
|
@@ -639,6 +639,7 @@ static int file_list_handle_text_input(const uint8_t* text) {
|
|
return 1;
|
|
}
|
|
}
|
|
+ return 0;
|
|
}
|
|
|
|
static int file_list_handle_key(struct key_event * k)
|
|
--
|
|
2.45.1
|
|
|