cancel
Showing results for 
Search instead for 
Did you mean: 

Warning/error in ButtonWithIcon

SZano
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III

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

View solution in original post

2 REPLIES 2
Martin KJELDSEN
Chief III

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

Thanks