enh(build): enable same warnings in GCC & clang

Closed Lucas SCHMIDT requested to merge 884-enh-build-enable-same-warnings-in-gcc-clang into dev


These changes enable the same warnings in GCC and Clang by enabling all warnings on these compilers and then filter out the warnings that don't appear on both compilers and the warnings that aren't useful.

Closes #884 (closed)

How to test it?

It should compile without any error, the fix shouldn't induce any regression.

Merge request reports