Skip to content

build: Add -Werror=unused... compile flags

With C++17 [[maybe_unused]] attribute it is easy to keep emerged cases in the new code under control.

This PR does not touch -Wno-unused-parameter as it requires too much of code churning.


Compiler specific notes:

  1. clang:
  1. gcc
  • -Werror=unused-const-variable with level 2 seems not suitable for C++ code

Merge request reports

Loading