On 03/10/15 14:05, Anton Khirnov wrote: > Quoting Vittorio Giovara (2015-10-02 12:43:47) >> Fix a warning from clang incompatible-pointer-types-discards-qualifiers. > > No. This hack might fix some warnings in some compiler, just to add them > in some other. If you want to fix it, fix the code.
Sadly you cannot "fix" it since it is due const-correctness model in the compiler doesn't match what you expect: it is one of those strstr-like situations. A possible way is to add another guard to disable/enable const-warnings when possible, like we do for the deprecation warnings, I did not complete it since I noticed some people dislike seeing them in the code. lu _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
