[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] fix build of gdbstub.c
Changeset 11598 broke the build with my gcc-4.1.2. You can't forward-declare a static function within another function. Trivial patch attached to fix this. Signed-off-by: Charles Coffing <ccoffing@xxxxxxxxxx> gcc -O1 -fno-omit-frame-pointer -g -m32 -march=i686 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/packages/BUILD/xen-unstable/xen/include -I/usr/src/packages/BUILD/xen-unstable/xen/include/asm-x86/mach-generic -I/usr/src/packages/BUILD/xen-unstable/xen/include/asm-x86/mach-default -msoft-float -g -D__XEN__ -DVERBOSE -DCRASH_DEBUG -c gdbstub.c -o gdbstub.o gdbstub.c: In function ‘gdbstub_attach’: gdbstub.c:363: error: invalid storage class for function ‘gdbstub_console_puts’ gdbstub.c:367: error: ‘gdbstub_console_puts’ undeclared (first use in this function) gdbstub.c:367: error: (Each undeclared identifier is reported only once gdbstub.c:367: error: for each function it appears in.) make[4]: *** [gdbstub.o] Error 1 Attachment:
gdbstubs.diff _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |