mirror of
https://gitlab.com/d3tn/ud3tn.git
synced 2026-08-20 13:28:22 +02:00
To fix the compiler warning:
> warning: variable length array folded to constant array as an
> extension [-Wgnu-folding-constant]
the value of the variable `BUFFER_SIZE` must be known at compile time.
Since this is not the case with a `const size_t BUFFER_SIZE`, either
`#define BUFFER_SIZE 9` must be used or the value must be wrapped in an
`enum`. I opted for `enum { BUFFER_SIZE = 9 }` to keep the variable
definition local.
Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
|
||
|---|---|---|
| .. | ||
| aap | ||
| aap2 | ||
| agents | ||
| bundle6 | ||
| bundle7 | ||
| cla | ||
| daemon | ||
| platform/posix | ||
| routing/compat | ||
| spp | ||
| ud3tn | ||