My application produce such errors with tidy
C:/psi-root/include/tidy.h:2095:88: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
TIDY_EXPORT const ctmbstr TIDY_CALL TidyLangWindowsName( const tidyLocaleMapItem *item );
C:/psi-root/include/tidy.h:2101:86: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
TIDY_EXPORT const ctmbstr TIDY_CALL TidyLangPosixName( const tidyLocaleMapItem *item );
In this line TIDY_EXPORT const ctmbstr TIDY_CALL TidyLangWindowsName( const tidyLocaleMapItem *item ); ctmbstr has allready defined as const so no need to add extra const to function declaration. The same for another line.