From: Jun Ma Date: Fri, 14 May 2010 13:04:14 +0000 (+0800) Subject: missing pointer's declaration when enable macro -D_DEBUG_GDB_IO_. X-Git-Tag: v0.5.0-rc1~697 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9597dcefaaf1282aa6721349e5b7472114b8bb54;p=openocd missing pointer's declaration when enable macro -D_DEBUG_GDB_IO_. reproducable when "./configure --enable-maintainer-mode CFLAGS=-D_DEBUG_GDB_IO_" Signed-off-by: Jun Ma Signed-off-by: Øyvind Harboe --- diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 275d4146..5b4fb7a6 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -171,6 +171,9 @@ static int gdb_get_char_inner(struct connection *connection, int* next_char) struct gdb_connection *gdb_con = connection->priv; int retval = ERROR_OK; +#ifdef _DEBUG_GDB_IO_ + char *debug_buffer; +#endif for (;;) { if (connection->service->type == CONNECTION_PIPE)