genode/repos/gems
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
..
include gems: Avoid flexible array member in Cached_font. 2022-02-15 10:23:58 +01:00
lib Add missing shared-object link dependencies 2022-02-15 10:23:14 +01:00
ports port/cbe: update to newest version 2022-02-15 10:23:15 +01:00
recipes Consistent spelling of "writeable" 2022-02-15 10:23:58 +01:00
run black_hole: test recipe for the depot_autopilot 2022-02-15 10:23:16 +01:00
sculpt usb_host_drv: move it to legacy_usb_host_drv 2022-02-15 10:23:16 +01:00
src gems: Remove unused lambda capture in vfs/ttf. 2022-02-15 10:23:58 +01:00
README Remove repos/qt4, fix #1451 2015-03-19 08:57:20 +01:00

This directory is a source-code repository containing Genode-specific
services and applications. In contrast to the components that come with
the 'os' repository, programs contained in 'gems' are able to leverage
the functionalities provided by higher-level repositories such as 'libports'.
To use the 'gems' repository, make sure to also add those repositories to your
build configuraion.