Skip to main content
SZano
Associate III
July 3, 2020
Solved

Warning/error in ButtonWithIcon

  • July 3, 2020
  • 1 reply
  • 904 views

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?

This topic has been closed for replies.
Best answer by Martin KJELDSEN

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

1 reply

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
July 3, 2020

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

SZano
SZanoAuthor
Associate III
July 4, 2020

Thanks