]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
debuginfod.cxx: Fix unused parameter warning
authorAaron Merey <amerey@redhat.com>
Tue, 10 Dec 2024 15:58:49 +0000 (10:58 -0500)
committerAaron Merey <amerey@redhat.com>
Tue, 10 Dec 2024 15:58:49 +0000 (10:58 -0500)
Add __attribute__ ((unused)) to prevent unused param warnings in
is_seekable_archive and extract_from_seekable_archive when USE_LZMA is
false.

Signed-off-by: Aaron Merey <amerey@redhat.com>
debuginfod/debuginfod.cxx

index cdf05456b41e3d026dc6c04351729fe22ac34a8d..0edd57cbab8a52a9335457d9d9422ca39df7f6dd 100644 (file)
@@ -2487,15 +2487,16 @@ extract_from_seekable_archive (const string& srcpath,
 }
 #else
 static bool
-is_seekable_archive (const string& rps, struct archive* a)
+is_seekable_archive (const string& rps __attribute__ ((unused)),
+                    struct archive* a __attribute__ ((unused)))
 {
   return false;
 }
 static int
-extract_from_seekable_archive (const string& srcpath,
-                               char* tmppath,
-                               uint64_t offset,
-                               uint64_t size)
+extract_from_seekable_archive (const string& srcpath __attribute__ ((unused)),
+                               char* tmppath __attribute__ ((unused)),
+                               uint64_t offset __attribute__ ((unused)),
+                               uint64_t size __attribute__ ((unused)))
 {
   return -1;
 }