forked from pool/kbuild
Accepting request 1179185 from home:jamborm:gcc14fixes
- Make kbuild buildable with GCC 14 (boo#1225792) * Changes to configure machinery so that it does not fail and detect what it has detected with previous GCC versions. (kBuild-configure-c99.patch, kBuild-configure-c99-2.patch) * Add many missing includes (kBuild-c99.patch). * Fix an actual bug in a call to eval_buffer that also manifests as a C99 violation (kBuild-c99-2.patch). OBS-URL: https://build.opensuse.org/request/show/1179185 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/kbuild?expand=0&rev=56
This commit is contained in:
committed by
Git OBS Bridge
parent
13c62e2f47
commit
c9849735bd
16
kBuild-c99-2.patch
Normal file
16
kBuild-c99-2.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
The eval_buffer function expects the end of the string as the
|
||||
(optional) last argument, not its length.
|
||||
|
||||
Index: src/kmk/loadapi.c
|
||||
===================================================================
|
||||
--- src/kmk/loadapi.c (revision 3600)
|
||||
+++ src/kmk/loadapi.c (working copy)
|
||||
@@ -59,7 +59,7 @@
|
||||
install_variable_buffer (&pbuf, &plen);
|
||||
|
||||
s = xstrdup (buffer);
|
||||
- eval_buffer (s, flp IF_WITH_VALUE_LENGTH_PARAM (strlen (s) /** @todo suboptimal */));
|
||||
+ eval_buffer (s, flp IF_WITH_VALUE_LENGTH_PARAM (s + strlen (s) /** @todo suboptimal */));
|
||||
free (s);
|
||||
|
||||
restore_variable_buffer (pbuf, plen);
|
Reference in New Issue
Block a user