summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRuediger Meier2018-06-25 14:23:42 +0200
committerRuediger Meier2018-06-25 16:49:37 +0200
commit24c329bbb35d96ef261d21b77f559d8fca942bd4 (patch)
treec865418f199813f5d44fccee0f4ac526f10c1a40 /lib
parentipcs,chmem: fix access() usage (diff)
downloadkernel-qcow2-util-linux-24c329bbb35d96ef261d21b77f559d8fca942bd4.tar.gz
kernel-qcow2-util-linux-24c329bbb35d96ef261d21b77f559d8fca942bd4.tar.xz
kernel-qcow2-util-linux-24c329bbb35d96ef261d21b77f559d8fca942bd4.zip
lib/path: remove unused expression
error: expression result unused [-Werror,-Wunused-value] prefix = optarg, "failed to parse range start"; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/path.c b/lib/path.c
index 34abb144a..9cc2e3e2e 100644
--- a/lib/path.c
+++ b/lib/path.c
@@ -1039,7 +1039,7 @@ int main(int argc, char *argv[])
while((c = getopt_long(argc, argv, "p:h", longopts, NULL)) != -1) {
switch(c) {
case 'p':
- prefix = optarg, "failed to parse range start";
+ prefix = optarg;
break;
case 'h':
usage();