XCC: Disable some, but not all, warnings of -Wextra
-
- Junior Member
- Posts: 5
- Joined: Mon Mar 18, 2019 2:54 pm
XCC: Disable some, but not all, warnings of -Wextra
Is it possible to disable some of the -Wextra warnings (e.g. the "missing initializer" one) while keeping the others?
-
- XCore Expert
- Posts: 580
- Joined: Thu Nov 26, 2015 11:47 pm
-
- Junior Member
- Posts: 5
- Joined: Mon Mar 18, 2019 2:54 pm
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
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).
I already tried `-Wno-missing-field-initializers` and it does not help. I still get the
Code: Select all
warning: missing initializer [-Wextra]
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).