]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix decl of query funcs when not built with debuginfod
authorAaron Merey <amerey@redhat.com>
Mon, 24 Feb 2020 20:59:13 +0000 (15:59 -0500)
committerAaron Merey <amerey@redhat.com>
Mon, 24 Feb 2020 20:59:13 +0000 (15:59 -0500)
gdb/debuginfod-support.c

index 6e0ee43c4fcb7febe57718787fd9d061e69f132c..3472c5fb709a18fd09b20aa2d3c405b3dcdc12f0 100644 (file)
 
 #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<char> *filename __attribute__((unused)))
+debuginfod_source_query (const unsigned char *build_id,
+                        int build_id_len,
+                        const char *srcpath,
+                        gdb::unique_xmalloc_ptr<char> *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<char> *filename __attribute__((unused)))
+debuginfod_debuginfo_query (const unsigned char *build_id,
+                           int build_id_len,
+                           const char *filename,
+                           gdb::unique_xmalloc_ptr<char> *destname)
 {
   return scoped_fd (-ENOSYS);
 }