Skip to content

include/cephfs/libcephfs.h: pop ignored warning back - #69029

Merged
vshankar merged 1 commit into
ceph:mainfrom
MaxKellermann:cephfs__pop_warnings
Sep 8, 2026
Merged

vshankar merged 1 commit into
ceph:mainfrom
MaxKellermann:cephfs__pop_warnings

Conversation

@MaxKellermann

Copy link
Copy Markdown
Member

Commit 9f44ca3 ("libcephfs: mark ceph_stat() family functions deprecated") added a #pragma to ignore -Wdeprecated-declarations, but forgot to pop it back at the end of the header.

That led to this warning being disabled globally - the opposite effect of what this commit was supposed to do (enable more deprecation warnings).

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@github-actions github-actions Bot added cephfs Ceph File System tests labels May 20, 2026

@tchaikov tchaikov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

Comment thread src/test/libcephfs/test.cc Resolved
Comment thread src/test/libcephfs/test.cc Resolved
@MaxKellermann
MaxKellermann force-pushed the cephfs__pop_warnings branch from c6cf31a to 23d8b6c Compare May 28, 2026 06:05
@chrisphoffman chrisphoffman self-assigned this Jun 19, 2026

@chrisphoffman chrisphoffman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The depreciated warning now shows up for function calls such as ceph_stat.

Nice find.

@chrisphoffman

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by choffman started 2026-07-15-15:47.

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

Commit 9f44ca3 ("libcephfs: mark ceph_stat() family functions
deprecated") added a `#pragma` to ignore `-Wdeprecated-declarations`,
but forgot to `pop` it back at the end of the header.

That led to this warning being disabled globally - the opposite effect
of what this commit was supposed to do (enable more deprecation
warnings).

Since this re-enables the warnings in places where they happened to be
ignored, a new `#pragma` needs to be added to
`src/test/libcephfs/test.cc` in order to avoid (expected) deprecation
warnings there.

Signed-off-by: Max Kellermann <[email protected]>
@MaxKellermann

Copy link
Copy Markdown
Member Author

jenkins test make check arm64

@vshankar

vshankar commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by vshankar started 2026-09-02-13:52.

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@vshankar
vshankar merged commit 9aea378 into ceph:main Sep 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants