Fix build error in gdb/rocm-tdep.c
authorLaurent Morichetti <laurent.morichetti@amd.com>
Wed, 15 Jan 2020 00:22:33 +0000 (16:22 -0800)
committerLaurent Morichetti <laurent.morichetti@amd.com>
Wed, 15 Jan 2020 00:22:33 +0000 (16:22 -0800)
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

gdb/rocm-tdep.c

index e694df4b5c49f677a5014a59993ea133b2a44cb0..87f93e65081147194ee01afff7d9f4e37d37ee05 100644 (file)
@@ -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;
This page took 0.024957 seconds and 4 git commands to generate.