forked from pool/perl-Tk
- Compile with -fpermissive to work around issues which GCC 14 considers errors (and not warnings as before) and add Tk-804-config-C99.diff to actually fix the problems in the conffigury snippets (which are not compiled with the options requested in optflags). [boo#1225909] Note that I was able to come up with a patch with which -fpermissive could be omitted, it is attached to the bugzilla. But I think the issues should be fixed upstream. I'll keep the bug open even after accepting the patch so that the need for -fpermissive can be reviewed in the future. OBS-URL: https://build.opensuse.org/request/show/1185237 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Tk?expand=0&rev=51
51 lines
1.2 KiB
Diff
51 lines
1.2 KiB
Diff
Index: config/signedchar.c
|
|
===================================================================
|
|
--- config/signedchar.c.orig
|
|
+++ config/signedchar.c
|
|
@@ -1,4 +1,4 @@
|
|
-main()
|
|
+int main()
|
|
{
|
|
signed char x = 'a';
|
|
return (x - 'a');
|
|
Index: config/unsigned.c
|
|
===================================================================
|
|
--- config/unsigned.c.orig
|
|
+++ config/unsigned.c
|
|
@@ -1,3 +1,5 @@
|
|
+#include <stdlib.h>
|
|
+
|
|
int main()
|
|
{
|
|
char x[] = "\377";
|
|
Index: pTk/config/Hstrdup.c
|
|
===================================================================
|
|
--- pTk/config/Hstrdup.c.orig
|
|
+++ pTk/config/Hstrdup.c
|
|
@@ -1,4 +1,5 @@
|
|
#include <string.h>
|
|
+#include <stdlib.h>
|
|
|
|
#define STRING "Whatever"
|
|
|
|
Index: pTk/config/Hstrtoul.c
|
|
===================================================================
|
|
--- pTk/config/Hstrtoul.c.orig
|
|
+++ pTk/config/Hstrtoul.c
|
|
@@ -1,3 +1,4 @@
|
|
+#include <string.h>
|
|
#include <stdlib.h>
|
|
|
|
int main()
|
|
Index: config/pregcomp2.c
|
|
===================================================================
|
|
--- config/pregcomp2.c.orig
|
|
+++ config/pregcomp2.c
|
|
@@ -4,5 +4,5 @@
|
|
|
|
int main() {
|
|
SV* sv = newSViv(0);
|
|
- regexp* rx = pregcomp(sv, 0);
|
|
+ void *rx = (void *) pregcomp(sv, 0);
|
|
}
|