You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix build warnings reported by -Werror=overloaded-virtual in gcc
For example:
In file included from /home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/include/opentelemetry/context/context_value.h:13,
from /home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/include/opentelemetry/context/context.h:7,
from /home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/include/opentelemetry/trace/tracer.h:6,
from /home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/include/opentelemetry/plugin/detail/tracer_handle.h:6,
from /home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/include/opentelemetry/plugin/tracer.h:10,
from /home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/include/opentelemetry/plugin/factory.h:9,
from /home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/include/opentelemetry/plugin/detail/dynamic_load_unix.h:12,
from /home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/include/opentelemetry/plugin/dynamic_load.h:11,
from /home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/test/plugin/dynamic_load_test.cc:4:
/home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/include/opentelemetry/trace/span.h:63:16: error: ‘virtual void opentelemetry::v1::trace::Span::AddEvent(opentelemetry::v1::nostd::string_view, const opentelemetry::v1::common::KeyValueIterable&)’ was hidden [-Werror=overloaded-virtual]
63 | virtual void AddEvent(nostd::string_view name,
| ^~~~~~~~
In file included from /home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/include/opentelemetry/plugin/factory.h:9,
from /home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/include/opentelemetry/plugin/detail/dynamic_load_unix.h:12,
from /home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/include/opentelemetry/plugin/dynamic_load.h:11,
from /home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/test/plugin/dynamic_load_test.cc:4:
/home/malff/CODE/MARC_GITHUB/opentelemetry-cpp/api/include/opentelemetry/plugin/tracer.h:37:8: note: by ‘opentelemetry::v1::plugin::Span::AddEvent’
37 | void AddEvent(nostd::string_view name,
| ^~~~~~~~
cc1plus: all warnings being treated as errors
The text was updated successfully, but these errors were encountered:
Fix build warnings reported by
-Werror=overloaded-virtual
in gccFor example:
The text was updated successfully, but these errors were encountered: