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-Url: https://git.gag.com/?a=commitdiff_plain;h=9597dcefaaf1282aa6721349e5b7472114b8bb54;p=fw%2Fopenocd 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 275d41468..5b4fb7a60 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)