[ffmpeg] fftools/cmdutils: constify string (branch master)
This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg. The following commit(s) were added to refs/heads/master by this push: new 4e32fb4c2a fftools/cmdutils: constify string 4e32fb4c2a is described below commit 4e32fb4c2abaee9f71cf1d67d306dd5486fbad23 Author: Kacper Michajłow <kasper93@gmail.com> AuthorDate: Sat Feb 28 03:15:28 2026 +0100 Commit: Kacper Michajłow <kasper93@gmail.com> CommitDate: Sat Feb 28 13:42:01 2026 +0100 fftools/cmdutils: constify string Fixes: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] Signed-off-by: Kacper Michajłow <kasper93@gmail.com> --- fftools/cmdutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 9a365c228d..2f9bae9f21 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -275,7 +275,7 @@ static int write_option(void *optctx, const OptionDef *po, const char *opt, } if (po->flags & OPT_FLAG_SPEC) { - char *p = strchr(opt, ':'); + const char *p = strchr(opt, ':'); char *str; sol = dst;
participants (1)
-
Kacper Michajłow