I work with Microchip PIC microcontrollers. I’m trying use clang for autocompletion in Vim.
Of course, I need to make clang to be able to compile my sources. The trouble is that PIC compilers are specific and have some special attributes, for which clang generates warnings.
Here’s part of PIC header file:
extern __attribute__((space(prog))) int _FBS;
#define _FBS(x) __attribute__((section("__FBS.sec"),space(prog))) int _FBS = (x);
Clang generates errors like that:
23: warning:
unknown attribute 'space' ignored [-Wattributes]
extern __attribute__((space(prog))) int _FUID2;
How can I disable such warning?
This should disable warnings generated by
-Wattributes: