open-telemetry / opentelemetry-php

The OpenTelemetry PHP Library

Home Page:https://opentelemetry.io/docs/instrumentation/php/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[opentelemetry-php-instrumentation] Enable additional compiler warnings

agoallikmaa opened this issue · comments

Currently the C source code of the auto-instrumentation extension is compiled with the default warning settings of the compiler. This means that a lot of possibly useful warnings are not enabled. Additionally, warnings that are not explicitly disabled should fail the build.

Enable -Wall -Wextra -Werror compilation flags, possibly with some exclusions if something discovered by it is necessary in our context.