2020-07-03 01:44 AM
Version:
TouchGFX 4.13.0
File:
touchgfx\framework\source\touchgfx\widgets\ButtonWithIcon.cpp:39
The code is:
#ifdef __IAR_SYSTEMS_ICC__ // Only include in IAR compilation
#pragma diag_suppress=Pe997 // Suppress warning for intentional virtual function override
#elif __ARMCC_VERSION
#pragma diag_suppress 997
#endif
But it should be:
#ifdef __IAR_SYSTEMS_ICC__ // Only include in IAR compilation
#pragma diag_suppress=Pe997 // Suppress warning for intentional virtual function override
#elif defined(__ARMCC_VERSION)
#pragma diag_suppress 997
#endif
(missing "defined")
Compiling on GCC, the #elif gets evaluated, but the symbol __ARMCC_VERSION doesn't exist, so the compiler either complains about it and treats it as 0, or it exits with an error (if the "-Werror=undef" option is set).
Compiler error:
"__ARMCC_VERSION" is not defined [-Werror=undef]"
PS: is this the proper way to file bug reports or is there a more appropriate (and more structured) place for it?
Solved! Go to Solution.
2020-07-03 03:16 PM
That's fine to report it this way, thanks - You could also send me a direct message if its something you don't feel really contributes to the community.
This is actually already solved in the upcoming 4.14.0 with respect to ARMCLANG support.
/Martin
2020-07-03 03:16 PM
That's fine to report it this way, thanks - You could also send me a direct message if its something you don't feel really contributes to the community.
This is actually already solved in the upcoming 4.14.0 with respect to ARMCLANG support.
/Martin
2020-07-03 10:47 PM
Thanks