cdparanoia: Ignore discarded-qualifiers coming from the header (again)

Followup to 75872c802b , clang version

While we ignore `discarded-qualifiers` already for gcc, clang seems
to assign this error to `incompatible-pointer-types-discards-qualifiers`
so we need to ignore that as well.

```
In file included from \
../subprojects/gst-plugins-base/ext/cdparanoia/gstcdparanoiasrc.h:37: \
/usr/include/cdda/cdda_interface.h:164:3: error: initializing 'char *' with an expression \
of type 'const char [8]' discards qualifiers [-Werror, \
-Wincompatible-pointer-types-discards-qualifiers]
  "Success",
  ^~~~~~~~~
```

See 75872c802b for more

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5474>
This commit is contained in:
Jordan Petridis 2023-09-08 18:03:17 +03:00 committed by GStreamer Marge Bot
parent 0bc353085f
commit f87d499aaf

View file

@ -35,6 +35,7 @@ if cdparanoia_found
# was in 2008. # was in 2008.
extra_args = cc.get_supported_arguments([ extra_args = cc.get_supported_arguments([
'-Wno-discarded-qualifiers', '-Wno-discarded-qualifiers',
'-Wno-incompatible-pointer-types-discards-qualifiers',
'-Wno-unused-variable' '-Wno-unused-variable'
]) ])