mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +00:00
05e4993d2e
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 |
||
---|---|---|
.. | ||
include | ||
lib | ||
ports | ||
recipes | ||
run | ||
sculpt | ||
src | ||
README |
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.