Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BUILD] Fix -Wmissing-template-arg-list-after-template-kw warning #3133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

yashykt
Copy link
Contributor

@yashykt yashykt commented Nov 7, 2024

Fixes #3124

Changes

Fix for missing-template-arg-list-after-template-kw warning.

@yashykt yashykt requested a review from a team as a code owner November 7, 2024 00:08
Copy link

netlify bot commented Nov 7, 2024

Deploy Preview for opentelemetry-cpp-api-docs canceled.

Name Link
🔨 Latest commit e6ee262
🔍 Latest deploy log https://app.netlify.com/sites/opentelemetry-cpp-api-docs/deploys/672d3d3873e4c00008b7d630

Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.85%. Comparing base (497eaf4) to head (e6ee262).
Report is 158 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3133      +/-   ##
==========================================
+ Coverage   87.12%   87.85%   +0.73%     
==========================================
  Files         200      195       -5     
  Lines        6109     6136      +27     
==========================================
+ Hits         5322     5390      +68     
+ Misses        787      746      -41     
Files with missing lines Coverage Δ
api/include/opentelemetry/logs/event_logger.h 90.00% <100.00%> (-2.30%) ⬇️
api/include/opentelemetry/logs/logger.h 63.05% <100.00%> (-1.53%) ⬇️
...pi/include/opentelemetry/logs/logger_type_traits.h 100.00% <100.00%> (+16.00%) ⬆️

... and 98 files with indirect coverage changes

Copy link
Member

@marcalff marcalff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix.

@marcalff marcalff changed the title Fix -Wmissing-template-arg-list-after-template-kw warning [BUILD] Fix -Wmissing-template-arg-list-after-template-kw warning Nov 7, 2024
@marcalff marcalff merged commit 95d039c into open-telemetry:main Nov 7, 2024
56 checks passed
zanmato1984 added a commit to apache/arrow that referenced this pull request Jun 2, 2025
…ent Clang (#46509)

### Rationale for this change

A warning is introduced in Clang 19.1.0 and AppleClang 17.0.0 that won't be demoted by `-Wno-error`, causing opentelemetry-cpp build failure.

### What changes are included in this PR?

Upgrade opentelemetry-cpp (and opentelemetry-proto correspondingly) to the most recent version, which has addressed this issue in open-telemetry/opentelemetry-cpp#3133.

With this upgrade, we found several false-positives in sanitizers. The reason seems to be that we build bundled third-party dependencies as static libraries and don't instrument their code. This is known to cause false-positives as per https://github.com/google/sanitizers/wiki/threadsanitizercppmanual#non-instrumented-code . So some suppressions and disablements are also made in this PR.

### Are these changes tested?

Manually build pass.

### Are there any user-facing changes?

None.
* GitHub Issue: #46508

Authored-by: Rossi Sun <[email protected]>
Signed-off-by: Rossi Sun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build error with clang-19
4 participants