From: Zbigniew Jędrzejewski-Szmek Date: Sun, 26 Feb 2017 07:24:39 +0000 (-0500) Subject: gpt-auto-generator: fix warning when compiling w/o efi (#5456) X-Git-Tag: v233~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d97beb0e16550fcae1ebbd76ba6d340690c0f4f0;p=thirdparty%2Fsystemd.git gpt-auto-generator: fix warning when compiling w/o efi (#5456) Fixes #5452. --- diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c index b958070c903..80f676e477b 100644 --- a/src/gpt-auto-generator/gpt-auto-generator.c +++ b/src/gpt-auto-generator/gpt-auto-generator.c @@ -475,7 +475,7 @@ static int add_esp(DissectedPartition *p) { 120 * USEC_PER_SEC); } #else -static int add_esp(const char *what) { +static int add_esp(DissectedPartition *p) { return 0; } #endif