games-arcade/xboing: fix build with clang16

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2022-09-30 01:19:02 -04:00
parent 6426c662d0
commit 66144432c2
2 changed files with 42 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
Ideally would want to enable -DNeedFunctionPrototypes=1
but it leads to more issues not handled here.
https://bugs.gentoo.org/870412
--- a/eyedude.c
+++ b/eyedude.c
@@ -51,2 +51,3 @@
#include <stdio.h>
+#include <stdlib.h>
#include <math.h>
--- a/include/intro.h
+++ b/include/intro.h
@@ -84,2 +84,3 @@
void DrawIntroTitle(Display *display, Window window, int x, int y);
+void HandleBlink(Display *display, Window window);
#else
@@ -92,2 +93,3 @@
void DoIntroTitle();
+void HandleBlink();
#endif
--- a/include/level.h
+++ b/include/level.h
@@ -74,2 +74,3 @@
void DisplayLevelInfo(Display *display, Window window, u_long level);
+void DisplayLevelNumber(Display *display, Window window, u_long level);
void CheckGameRules(Display *display, Window window);
@@ -113,2 +114,3 @@
void DisplayLevelInfo();
+void DisplayLevelNumber();
void CheckGameRules();
--- a/main.c
+++ b/main.c
@@ -231,3 +231,3 @@
{
- static oldx = 0;
+ static int oldx = 0;
int x, y;

View File

@@ -17,8 +17,11 @@ KEYWORDS="amd64 ~x86"
RDEPEND="
acct-group/gamestat
x11-libs/libX11
x11-libs/libXpm"
DEPEND="${RDEPEND}"
DEPEND="
${RDEPEND}
x11-base/xorg-proto"
BDEPEND="
app-text/rman
sys-devel/gcc
@@ -29,6 +32,7 @@ PATCHES=(
"${WORKDIR}"/${P}-debian.patch
"${FILESDIR}"/${P}-buffer.patch
"${FILESDIR}"/${P}-sleep.patch
"${FILESDIR}"/${P}-clang16.patch
)
src_prepare() {