From: Aaron Merey Date: Mon, 24 Feb 2020 20:59:13 +0000 (-0500) Subject: Fix decl of query funcs when not built with debuginfod X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e7611cfe2d59e919d6233ed9248f3979995f400;p=thirdparty%2Fbinutils-gdb.git Fix decl of query funcs when not built with debuginfod --- diff --git a/gdb/debuginfod-support.c b/gdb/debuginfod-support.c index 6e0ee43c4fc..3472c5fb709 100644 --- a/gdb/debuginfod-support.c +++ b/gdb/debuginfod-support.c @@ -24,18 +24,19 @@ #ifndef HAVE_LIBDEBUGINFOD scoped_fd -debuginfod_source_query (const unsigned char *build_id __attribute__((unused)), - int build_id_len __attribute__((unused)), - const char *srcpath __attribute__((unused)), - gdb::unique_xmalloc_ptr *filename __attribute__((unused))) +debuginfod_source_query (const unsigned char *build_id, + int build_id_len, + const char *srcpath, + gdb::unique_xmalloc_ptr *destname) { return scoped_fd (-ENOSYS); } scoped_fd -debuginfod_debuginfo_query (const unsigned char *build_id __attribute__((unused)), - int build_id_len __attribute__((unused)), - gdb::unique_xmalloc_ptr *filename __attribute__((unused))) +debuginfod_debuginfo_query (const unsigned char *build_id, + int build_id_len, + const char *filename, + gdb::unique_xmalloc_ptr *destname) { return scoped_fd (-ENOSYS); }