From: Geoff Levand Date: Sun, 4 Dec 2011 23:46:33 +0000 (-0800) Subject: Fix paths.c build warnings X-Git-Tag: v1.0.0~806 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=a0c1a0228699cb86aa730c18b21d6d71fde414ca Fix paths.c build warnings Signed-off-by: Geoff Levand --- 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",