XCC: Disable some, but not all, warnings of -Wextra

Technical questions regarding the XTC tools and programming with XMOS.
luator
Junior Member
Posts: 5
Joined: Mon Mar 18, 2019 2:54 pm

XCC: Disable some, but not all, warnings of -Wextra

Post by luator »

Is it possible to disable some of the -Wextra warnings (e.g. the "missing initializer" one) while keeping the others?


User avatar
akp
XCore Expert
Posts: 579
Joined: Thu Nov 26, 2015 11:47 pm

Post by akp »

luator
Junior Member
Posts: 5
Joined: Mon Mar 18, 2019 2:54 pm

Post by luator »

Thanks for the reply but can you be a bit more specific on what I should read/try there?
I already tried `-Wno-missing-field-initializers` and it does not help. I still get the

Code: Select all

warning: missing initializer [-Wextra]
warnings.

In case it is relevant, please note that I am talking about xC code (as I already noticed that there is -Wcast-align for C and -Wcast-alignment for xC which are for some reason different warnings).