summaryrefslogtreecommitdiffstats
path: root/debuginfod
diff options
context:
space:
mode:
authorAaron Merey <[email protected]>2024-12-10 10:58:49 -0500
committerAaron Merey <[email protected]>2024-12-10 10:58:49 -0500
commit04c1f79dd690158ec5bccf6e13443cebf491454b (patch)
tree4e54616aa799c580791d3089857682bdaa0a78db /debuginfod
parent87e7f211aa30888f80448be97bc4177c676fef82 (diff)
debuginfod.cxx: Fix unused parameter warning
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 <[email protected]>
Diffstat (limited to 'debuginfod')
-rw-r--r--debuginfod/debuginfod.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx
index cdf05456..0edd57cb 100644
--- a/debuginfod/debuginfod.cxx
+++ b/debuginfod/debuginfod.cxx
@@ -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;
}