From: Zbigniew Jędrzejewski-Szmek Date: Fri, 27 Feb 2026 20:16:37 +0000 (+0100) Subject: dissect: restore compat with clang X-Git-Tag: v261-rc1~761^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08f7a4865e361bfcac3c480152cbbf5e10829340;p=thirdparty%2Fsystemd.git dissect: restore compat with clang clang says: src/dissect/dissect.c:292:17: warning: label followed by a declaration is a C23 extension [-Wc23-extensions] Another option would be to raise the C standard to C23. I think that'd make sense, but it's better to do it separately. --- diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index 8ede2f61a96..76c3f90c7e5 100644 --- a/src/dissect/dissect.c +++ b/src/dissect/dissect.c @@ -260,7 +260,7 @@ static int parse_argv(int argc, char *argv[]) { arg_in_memory = true; break; - OPTION_LONG("root-hash", "HASH", "Specify root hash for verity"): + OPTION_LONG("root-hash", "HASH", "Specify root hash for verity"): {} OPTION_LONG("usr-hash", "HASH", "Same, but for the usr partition"): { _cleanup_(iovec_done) struct iovec roothash = {}; @@ -286,7 +286,7 @@ static int parse_argv(int argc, char *argv[]) { OPTION_LONG("root-hash-sig", "SIG", "Specify signature of root hash for verity as DER-encoded PKCS7, " "either as a path to a file or as an ASCII base64-encoded string " - "prefixed by 'base64:'"): + "prefixed by 'base64:'"): {} OPTION_LONG("usr-hash-sig", "SIG", "Same, but for the usr partition"): { const char *value; _cleanup_(iovec_done) struct iovec sig = {}; @@ -410,7 +410,7 @@ static int parse_argv(int argc, char *argv[]) { break; /************************************ Commands ***************************************/ - OPTION_GROUP("Commands"): + OPTION_GROUP("Commands"): {} OPTION_COMMON_HELP: return help();