Skip to main content
Associate
March 25, 2026
Question

Unused Parameters in CompressedUnmappedFontCache and CompressedFontCache

  • March 25, 2026
  • 1 reply
  • 117 views
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

ST Employee
March 26, 2026

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