From: Laurent Morichetti Date: Wed, 15 Jan 2020 00:22:33 +0000 (-0800) Subject: Fix build error in gdb/rocm-tdep.c X-Git-Url: http://git.efficios.com/?p=deliverable%2Fbinutils-gdb.git;a=commitdiff_plain;h=d16c467a501547e37b111f775396e28f8bf27c1e Fix build error in gdb/rocm-tdep.c This patch fixes the following build error: ../../gdb/rocm-tdep.c: In function ‘void async_file_flush()’: ../../gdb/rocm-tdep.c:205:1: error: no previous declaration for ‘void async_file_flush()’ [-Werror=missing-declarations] async_file_flush (void) ^~~~~~~~~~~~~~~~ Change-Id: Ia5be169ce25452e40eeba0b6ff29d3c07db2795c --- diff --git a/gdb/rocm-tdep.c b/gdb/rocm-tdep.c index e694df4b5c..87f93e6508 100644 --- a/gdb/rocm-tdep.c +++ b/gdb/rocm-tdep.c @@ -201,7 +201,7 @@ static int rocm_event_pipe[2] = { -1, -1 }; /* Flush the event pipe. */ -void +static void async_file_flush (void) { int ret;