filtfmts-test: Mark filter as const
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 4 Apr 2017 15:56:34 +0000 (17:56 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 10 Apr 2017 13:04:41 +0000 (09:04 -0400)
libavfilter/tests/filtfmts.c:57:18: warning:
      assigning to 'AVFilter *' (aka 'struct AVFilter *') from
      'const AVFilter *' (aka 'const struct AVFilter *') discards qualifiers
      [-Wincompatible-pointer-types-discards-qualifiers]

libavfilter/tests/filtfmts.c

index cc04654..6bd8237 100644 (file)
@@ -28,7 +28,7 @@
 
 int main(int argc, char **argv)
 {
-    AVFilter *filter;
+    const AVFilter *filter;
     AVFilterContext *filter_ctx;
     AVFilterGraph *graph_ctx;
     const char *filter_name;