mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-14 17:13:50 +01:00
This adds the `NONSTRING` attribute that is defined as either `__attribute__((nonstring))` or as empty, depending on whether the toolchain understands the `nonstring` attribute. This allows declaring char arrays as not being a zero-terminated c-string without cluttering the code with preprocessor conditinational to ensure backward compatibility with compilers that do not support `-Wunterminated-string-initialization` yet.