aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-10-19 16:12:49 +0200
committerDiego Biurrun <diego@biurrun.de>2013-10-23 13:17:23 +0200
commit0d6d4a9e4a626be6ff55839eab4114aeac45ba88 (patch)
treeb23ad7e5b68344e180325af993296b206ff26f09
parent72072bf9de3241848ea86f68d2297b7a5d6ad49b (diff)
downloadffmpeg-0d6d4a9e4a626be6ff55839eab4114aeac45ba88.tar.gz
avstring-test: Mark pointer passed to av_free() as non-const
libavutil/avstring.c:278:9: warning: passing argument 1 of ‘av_free’ discards ‘const’ qualifier from pointer target type
-rw-r--r--libavutil/avstring.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/avstring.c b/libavutil/avstring.c
index 818fbdb3c5..3ea7be0e1d 100644
--- a/libavutil/avstring.c
+++ b/libavutil/avstring.c
@@ -270,7 +270,8 @@ int main(void)
printf("Testing av_get_token()\n");
for (i = 0; i < FF_ARRAY_ELEMS(strings); i++) {
- const char *p = strings[i], *q;
+ const char *p = strings[i];
+ char *q;
printf("|%s|", p);
q = av_get_token(&p, ":");
printf(" -> |%s|", q);