Fixes for very strict compiler warning flags.
Fixed
atto_zeros()
andatto_nzeros()
fixes:- cast the buffer to verify to
const unsigned char
instead of
unsigned char
to avoid dropping anyconst
qualifier of the buffer - use
(unsigned) char
instead ofuint8_t
to avoid needingstdint.h
- avoid using variable names starting with double underscores as those are
reserved handles and the compiler might complain
- cast the buffer to verify to
- Add missing
#include "atto.h"
inatto.
c. While typically works without
it, some compilers are complaining
Fixed/improved project internals (not related to Atto itself)
- Replace forced CMake compiler warning flags with
CMakePresets.json
to make them recommended but optional - Introduce
.gitattributes
, mostly to force native line endings in Git
working directory - Introduce
.editorconfig
, mostly to force length limits for lines of
Markdown - Introduce
.clang-format
- Autoformat everything, including Readme, Changelog, CMakeLists, and C code (
according to newly added.clang-format
)