c9s / r3

libr3 is a high-performance path dispatching library. It compiles your route paths into a prefix tree (trie). By using the constructed prefix trie in the start-up time, you may dispatch your routes with efficiency
http://c9s.github.com/r3/bench.html
MIT License
813 stars 83 forks source link

Fix compiler warnings #155

Closed bjosv closed 3 months ago

bjosv commented 9 months ago

Clang warnings: When building using a newer Clang with additional diagnostics the following warnings are indicated:

This is corrected by removing the unused variable and adding void to function definitions/declarations. Reproducible using CC="clang-13" CFLAGS="-Wall -pedantic" cmake ..

GCC warnings: When building with gcc >= 11 the following warning is indicated:

This is corrected by replacing the use of the deprecated libcheck API fail_if() with ck_assert_msg according to recommendation.

This warning can be seen in a CI run.

coveralls commented 8 months ago

Coverage Status

coverage: 91.281% (-0.02%) from 91.304% when pulling 7c625f8f4c006ec5bb8059d6b154f84ea4279662 on Nordix:fix-warnings into c105117b40d1a7b2b9ddf1672cd08b11bd565bd9 on c9s:2.0.