I have encountered duplicate 'const' compilation errors with uGFX graphics library. The library is written in C language and uses duplicate const declarations like:
const char const keycap; const char const sendkey;
pic32-g++ fails to compile it. Is there any way to suppress this type of compilation error? I tried "Suppress warning" and "Enable all warnings" UECIDE options with the same result.
I've spent some on researching gcc compilation flags. '-Wduplicate-decl-specifier' enables warnings for duplicate consts. This option is implicitly enabled only when '-Wall' option is enabled (UECIDE "Enable all warning"). But if I understand this correctly all warnings are inhibited by '-w' option (UECIDE "Suppress warnings"). Hence the compiler should ignore duplicate consts when "Supress warnings" is enabled, but in reality it exits on duplicate const error. Can you please help me to understand what am I doing wrong? How to disable pic32-g++ duplicate const errors?