Skip to content

v1.4.1

Latest
Compare
Choose a tag to compare
@TheMatjaz TheMatjaz released this 16 Dec 19:58

Fixes for very strict compiler warning flags.

Fixed

  • atto_zeros() and atto_nzeros() fixes:
    • cast the buffer to verify to const unsigned char instead of
      unsigned char to avoid dropping any const qualifier of the buffer
    • use (unsigned) char instead of uint8_t to avoid needing stdint.h
    • avoid using variable names starting with double underscores as those are
      reserved handles and the compiler might complain
  • Add missing #include "atto.h" in atto.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)