diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-10-19 16:12:49 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-10-23 13:17:23 +0200 |
commit | 0d6d4a9e4a626be6ff55839eab4114aeac45ba88 (patch) | |
tree | b23ad7e5b68344e180325af993296b206ff26f09 /libavutil/avstring.c | |
parent | 72072bf9de3241848ea86f68d2297b7a5d6ad49b (diff) | |
download | ffmpeg-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
Diffstat (limited to 'libavutil/avstring.c')
-rw-r--r-- | libavutil/avstring.c | 3 |
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); |