genode/repos/gems/include
Piotr Tworek 05e4993d2e gems: Avoid flexible array member in Cached_font.
Switch the code to 0 lengh array instead. The code in
Lru_cache::element_size calls sizeof on this structure. This works in
gcc, but fails when using clang. Even for GCC however the documentation
states:

  "Flexible array members have incomplete type, and so the sizeof operator
   may not be applied. As a quirk of the original implementation of
   zero-length arrays, sizeof evaluates to zero."

Basically its an implementation quirk that clang does not support. Both
GCC and clang do support zero sized arrays however so using them here
allows both compilers to process this code.

Ref: https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html

Issue #4421
2022-02-15 10:23:58 +01:00
..
aes_cbc_4k Library for the AES-CBC en/decryption of 4K blocks 2019-04-09 12:30:35 +02:00
cbe vfs/cbe_trust_anchor: fix bug in key decrypt 2021-10-13 14:50:46 +02:00
depot depot_download: support downloading index files 2019-02-28 11:34:06 +01:00
gems gems: Avoid flexible array member in Cached_font. 2022-02-15 10:23:58 +01:00
nano3d nano3d: remove surface-clear optimization 2021-05-10 11:17:20 +02:00
polygon_gfx gems: avoid implicit conversions 2021-12-17 15:04:46 +01:00