-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8918 from heitbaum/gcc14
Addon fixes for gcc-14.1
- Loading branch information
Showing
5 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
74 changes: 74 additions & 0 deletions
74
...ns/addon-depends/chrome-depends/unclutter/patches/unclutter-0001-fix-gcc-14-1-build.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--- a/unclutter.c 2007-02-05 23:13:12.000000000 +0000 | ||
+++ b/unclutter.c 2024-05-23 07:41:37.115416042 +0000 | ||
@@ -37,14 +37,15 @@ | ||
#include <X11/Xutil.h> | ||
#include <X11/Xproto.h> | ||
#include <stdio.h> | ||
+#include <stdlib.h> | ||
#include "vroot.h" | ||
|
||
char *progname; | ||
-pexit(str)char *str;{ | ||
+int pexit(str)char *str;{ | ||
fprintf(stderr,"%s: %s\n",progname,str); | ||
exit(1); | ||
} | ||
-usage(){ | ||
+void usage(){ | ||
pexit("usage:\n\ | ||
-display <display>\n\ | ||
-idle <seconds> time between polls to detect idleness.\n\ | ||
@@ -79,6 +80,7 @@ | ||
{ | ||
if(error->error_code!=BadWindow) | ||
(*defaulthandler)(display,error); | ||
+ return 0; | ||
} | ||
|
||
char **names; /* -> argv list of names to avoid */ | ||
@@ -87,7 +89,7 @@ | ||
* return true if window has a wm_name and the start of it matches | ||
* one of the given names to avoid | ||
*/ | ||
-nameinlist(display,window) | ||
+int nameinlist(display,window) | ||
Display *display; | ||
Window window; | ||
{ | ||
@@ -109,7 +111,7 @@ | ||
* return true if window has a wm_name and one of the given names to avoid | ||
* matches anywhere in that string | ||
*/ | ||
-matchinlist(display,window) | ||
+int matchinlist(display,window) | ||
Display *display; | ||
Window window; | ||
{ | ||
@@ -131,7 +133,7 @@ | ||
/* | ||
* create a small 1x1 cursor with all pixels masked out on the given screen. | ||
*/ | ||
-createnullcursor(display,root) | ||
+Cursor createnullcursor(display,root) | ||
Display *display; | ||
Window root; | ||
{ | ||
@@ -155,7 +157,7 @@ | ||
return cursor; | ||
} | ||
|
||
-main(argc,argv)char **argv;{ | ||
+int main(argc,argv)int argc;char **argv;{ | ||
Display *display; | ||
int screen,oldx = -99,oldy = -99,numscreens; | ||
int doroot = 0, jitter = 0, idletime = 5, usegrabmethod = 0, waitagain = 0, | ||
--- a/vroot.h 2007-02-05 22:52:40.000000000 +0000 | ||
+++ b/vroot.h 2024-05-23 07:59:50.811488716 +0000 | ||
@@ -40,6 +40,7 @@ | ||
static Window | ||
VirtualRootWindow(dpy, screen) | ||
Display *dpy; | ||
+int screen; | ||
{ | ||
static Display *save_dpy = (Display *)0; | ||
static int save_screen = -1; |
10 changes: 10 additions & 0 deletions
10
packages/addons/addon-depends/tslib/patches/tslib-40-fix-gcc-14-1.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- a/src/ts_reconfig.c 2024-05-23 07:01:59.264165839 +0000 | ||
+++ b/src/ts_reconfig.c 2024-05-23 07:01:54.034129359 +0000 | ||
@@ -16,6 +16,7 @@ | ||
#include <unistd.h> | ||
#endif | ||
#include <dlfcn.h> | ||
+#include <string.h> | ||
|
||
#include "tslib-private.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/emulation/libretro-picodrive/patches/picodrive-02-fix-build-gcc-14-1.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/pico/carthw/svp/compiler.c 2024-05-23 07:19:59.237513012 +0000 | ||
+++ b/pico/carthw/svp/compiler.c 2024-05-23 07:19:48.767443545 +0000 | ||
@@ -1797,7 +1797,7 @@ | ||
|
||
if (tcache_ptr - (u32 *)tcache > DRC_TCACHE_SIZE/4) { | ||
elprintf(EL_ANOMALY|EL_STATUS|EL_SVP, "tcache overflow!\n"); | ||
- fflush(stdout); | ||
+ fflush((RFILE *)stdout); | ||
exit(1); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters