Skip to content

Treating warnings as errors breaks local complexity profiling

Basic info

  • Commit SHA: d55bebdc
  • Platform: Apple Silicon Mac, Clang 15.0.0

Bug description

Complexity profiling on Arm Mac needs to be done using cppp as coan is not supported. Compiling the instrumented code produces a lot of warnings of type

warning: '$' in identifier [-Wdollar-in-identifier-extension]

The merge of !1249 (merged) added the compiler flag -Werror treating all warnings as errors. As a result, the building the instrumented code fails.

Removing the flag Werror from Makefile allows building the instrumented code again.

Ways to reproduce

cd scripts
./prepare_instrumentation.sh
make -C c-code_instrument DEBUG=0 -j