mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
This is an error now Debian Trixie's gcc-14 Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Juergen Gross <jgross@suse.com>
24 lines
926 B
Diff
24 lines
926 B
Diff
GCC-14 in Debian Trixie i386 complains:
|
|
|
|
../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c: In function '_mcount':
|
|
../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:227:14: error: type defaults to 'int' in declaration of '_etext' [-Wimplicit-int]
|
|
227 | extern _etext();
|
|
| ^~~~~~
|
|
../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:228:14: error: type defaults to 'int' in declaration of '_ftext' [-Wimplicit-int]
|
|
228 | extern _ftext();
|
|
| ^~~~~~
|
|
|
|
--- newlib-1.16.0/libgloss/i386/cygmon-gmon.c.orig 2025-08-09 22:48:09.864068481 +0100
|
|
+++ newlib-1.16.0/libgloss/i386/cygmon-gmon.c 2025-08-09 22:52:18.458393484 +0100
|
|
@@ -224,8 +224,8 @@
|
|
|
|
if (! already_setup)
|
|
{
|
|
- extern _etext();
|
|
- extern _ftext();
|
|
+ extern char _etext[];
|
|
+ extern char _ftext[];
|
|
already_setup = 1;
|
|
monstartup(_ftext, _etext);
|
|
atexit(_mcleanup);
|