mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 10:50:01 +01:00
Don't implicitly discard const
As poptGetOptArg() returns "const char *", assigning it to a "const char *" varible triggers a warning on Clang: "incompatible-pointer-types-discards-qualifiers".
This commit is contained in:
committed by
Milan Broz
parent
d7b9ed05f0
commit
e8b6890318
@@ -2222,10 +2222,10 @@ int main(int argc, const char **argv)
|
||||
|
||||
while((r = poptGetNextOpt(popt_context)) > 0) {
|
||||
unsigned long long ull_value;
|
||||
char *endp, *kf;
|
||||
char *endp;
|
||||
|
||||
if (r == 6) {
|
||||
kf = poptGetOptArg(popt_context);
|
||||
const char *kf = poptGetOptArg(popt_context);
|
||||
if (tools_is_stdin(kf))
|
||||
opt_keyfile_stdin = kf;
|
||||
else if (opt_keyfiles_count < MAX_KEYFILES)
|
||||
|
||||
Reference in New Issue
Block a user