scality / quadiron

Fast Erasure Coding Library for Large Number of Data and Parities
BSD 3-Clause "New" or "Revised" License
28 stars 5 forks source link

Add more compilation flags #258

Closed slaperche-scality closed 6 years ago

slaperche-scality commented 6 years ago

In order to keep a good level of code quality, this PR introduces makes Clang and GCC stricter.

The set of flags are the ones that were used on the DCSS project.

The next step will be to enable more lint check in clang-tidy, but that PR is already big enough as it is.

Also, before moving onto the linter, there are still two more warnings that I want to enable: -Wconversion and -Wshadow. Those will require a litlte bit more rework so they will be done in a dedicated PR:

slaperche-scality commented 6 years ago

@lamphamsy It would be great if you could review the changes in the commit "fix Doxygen documentation (flagged by -Wdocumentation)" carefully.

Most of the errors flagged by -Wdocumentation were about missing description for function parameters. I fixed those by either:

If you have suggestions for those, I would be more than happy to update this commit with better descriptions/documentation :slightly_smiling_face: