Files
fml13v01-buildroot/package/bluez5_utils-headers/0001-bluez5_utils-fix-the-compiler-issue-for-gcc-12.2.0.patch
Andy Hu fa0c16659e package/bluez5_utils: fix compiler error for gcc 12.2.0
Keep the bluez5_utils-headers version and patches in sync with bluez5_utils

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-11-28 15:43:17 +08:00

39 lines
1.1 KiB
Diff

From 5f74b142f1bcb8003d6e84f71c7b958818756f3c Mon Sep 17 00:00:00 2001
From: Andy Hu <andy.hu@starfivetech.com>
Date: Fri, 19 May 2023 23:30:56 +0800
Subject: [PATCH] bluez5_utils: fix the compiler issue for gcc 12.2.0
fix the conflicting types for 'pause'; have '_Bool(void *)'
which had defined in /usr/include/unistd.h is 'int pause (void)'
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
---
profiles/audio/media.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index 02bf82a..0892532 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
@@ -1280,7 +1280,7 @@ static bool stop(void *user_data)
return media_player_send(mp, "Stop");
}
-static bool pause(void *user_data)
+static bool func_pause(void *user_data)
{
struct media_player *mp = user_data;
@@ -1330,7 +1330,7 @@ static struct avrcp_player_cb player_cb = {
.set_volume = set_volume,
.play = play,
.stop = stop,
- .pause = pause,
+ .pause = func_pause,
.next = next,
.previous = previous,
};
--
2.34.1