Suppress some C compiler build warnings.

Vala causes a _lot_ of these to be emitted for otherwise valid
code. Suppress them so we can actually see more useful warnings.

* src/CMakeLists.txt: Suppress incompatible-pointer-types and
  discarded-qualifiers C compiler warnings.
This commit is contained in:
Michael James Gratton 2017-10-16 09:26:33 +10:30
parent d09b1d690a
commit dfd3355d48

View file

@ -575,6 +575,10 @@ set(CFLAGS
-DISO_CODE_639_XML=\"${ISO_CODE_639_XML}\"
-DISO_CODE_3166_XML=\"${ISO_CODE_3166_XML}\"
-DGCR_API_SUBJECT_TO_CHANGE
# Vala causes a _lot_ of these to be emitted for otherwise valid
# code. Suppress them so we can actually see more useful warnings.
-Wno-incompatible-pointer-types
-Wno-discarded-qualifiers
)
if (REF_TRACKING)