Closed nacansino closed 4 years ago
If you want to rely on our CI to validate your code, you can switch this PR into the draft mode, push your changes as many times as necessary, then squash your commits and let us know when it's ready for another look. Thanks!
@pavel-kirienko Sorry there has not been any progress here lately. Anyway, should I pull here the changes on https://github.com/UAVCAN/libcanard/pull/152?
Description of PR
This pull request relaxes the requirement of C-compiler to C99.
Changes
There are no changes to the logical portion of the code. All changes are either related to suppressing the compile-time compiler verification or to the documentation. However, some notable changes in this PR are:
__STDC_VERSION__
from201112L
to199901L
_Static_assert
when building on C99. This has the implication of that static assertions cannot be used when working with C99.Caveats
I was not able to test the library using the
tests/
directory due to my failure to replicate the build system (my attempt was rife withclang-tidy
errors - of which fixing may take an amount of time exceeding the total time needed for the PR itself). I am hoping for the CI to test this PR for me.