[FFmpeg-cvslog] avstring-test: Mark pointer passed to av_free() as non-const

Diego Biurrun git at videolan.org
Wed Oct 23 19:00:20 CEST 2013


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Sat Oct 19 16:12:49 2013 +0200| [0d6d4a9e4a626be6ff55839eab4114aeac45ba88] | committer: Diego Biurrun

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0d6d4a9e4a626be6ff55839eab4114aeac45ba88
---

 libavutil/avstring.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavutil/avstring.c b/libavutil/avstring.c
index 818fbdb..3ea7be0 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);



More information about the ffmpeg-cvslog mailing list