summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2011-12-04 15:46:33 -0800
committerGeoff Levand <geoff@infradead.org>2011-12-04 16:15:00 -0800
commita0c1a0228699cb86aa730c18b21d6d71fde414ca (patch)
treec4f11f3b428aaf0fe048dcfe4df6eee7cf0371c9 /discover
parent8f122ed62ffcd0508d857393e6809f2581cf790e (diff)
downloadtalos-petitboot-a0c1a0228699cb86aa730c18b21d6d71fde414ca.tar.gz
talos-petitboot-a0c1a0228699cb86aa730c18b21d6d71fde414ca.zip
Fix paths.c build warnings
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover')
-rw-r--r--discover/paths.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/discover/paths.c b/discover/paths.c
index fe7a876..c403691 100644
--- a/discover/paths.c
+++ b/discover/paths.c
@@ -58,9 +58,9 @@ char *encode_label(void *alloc_ctx, const char *label)
}
char *parse_device_path(void *alloc_ctx,
- const char *dev_str, const char *cur_dev)
+ const char *dev_str, const char __attribute__((unused)) *cur_dev)
{
- char *dev, tmp[256], *enc;
+ char *dev, *enc;
if (is_prefix_ignorecase(dev_str, "uuid=")) {
dev = talloc_asprintf(alloc_ctx, "/dev/disk/by-uuid/%s",
OpenPOWER on IntegriCloud