cancel
Showing results for 
Search instead for 
Did you mean: 

Unused Parameters in CompressedUnmappedFontCache and CompressedFontCache

MillerWeldsJack
Associate II
I get the build warning (which is treated as an error):
```
CompressedUnmappedFontCache.cpp:146:66: error: unused parameter 'glyphNode' [-Werror=unused-parameter]
[build]   146 | void CompressedUnmappedFontCache::unableToCache(const GlyphNode* glyphNode, int byteSize)
```
This is easily fixed with
void CompressedUnmappedFontCache::unableToCache(const GlyphNode* /*glyphNode*/, int /*byteSize*/)
{
    while(1);
}​
But, it's generated code, so I have to make this fix every time a regenerate. This warning happens in both `CompressedUnmappedFontCache` and `CompressedFontCache`.
1 REPLY 1
JohanAstrup
ST Employee

Hello .

Thank you for reporting this issue. I will make sure a fix is included in TouchGFX 4.27.0.

In the meantime, to avoid having to manually modify the generated code, you can create a Ruby script and run it from the Post Generate Target Command, which you can find under Config -> Build.

Best regards,
Johan