Skip to content
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

Deprecate _format UDL in code using FMT_DEPRECATED #2646

Merged
merged 1 commit into from
Dec 18, 2021

Conversation

alexezeder
Copy link
Contributor

Originated from discussion in #2640.

The _format-related test moved to separate test suite, since tests are not allowed to have warnings (with FMT_PEDANTIC and FMT_WERROR) and FMT_DEPRECATED produces one. This way, we still can be sure that _format works fine.

@vitaut
Copy link
Contributor

vitaut commented Dec 17, 2021

Thanks for the PR. Mostly looks good but let's not introduce a new test for a deprecated function. Let's suppress the warning instead.

@alexezeder
Copy link
Contributor Author

Let's suppress the warning instead.

That's a bit trickier since there are too many compilers. Of course, we could use some trivial checks and pragmas for GCC, Clang, and MSVC. But to get that warning suppressed in most compilers, something like this is needed - hedley/hedley.h.

@vitaut
Copy link
Contributor

vitaut commented Dec 17, 2021

That's a bit trickier since there are too many compilers.

Then I would suggest removing the test altogether or limiting it to a single compiler where it's easy to suppress the deprecation warning. The test is pretty rudimentary anyway.

@vitaut vitaut merged commit e46392e into fmtlib:master Dec 18, 2021
@vitaut
Copy link
Contributor

vitaut commented Dec 18, 2021

Thank you!

tchaikov added a commit to tchaikov/ceph that referenced this pull request Feb 18, 2022
_format() was deprecated in fmtlib v8, see also
fmtlib/fmt#2646

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
tchaikov added a commit to tchaikov/ceph that referenced this pull request Feb 18, 2022
_format() was deprecated in fmtlib v8, see also
fmtlib/fmt#2646

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
nSedrickm pushed a commit to nSedrickm/ceph that referenced this pull request Mar 21, 2022
_format() was deprecated in fmtlib v8, see also
fmtlib/fmt#2646

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
zalsader pushed a commit to zalsader/ceph that referenced this pull request Apr 11, 2022
_format() was deprecated in fmtlib v8, see also
fmtlib/fmt#2646

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
dpaganel pushed a commit to dpaganel/ceph that referenced this pull request May 17, 2022
_format() was deprecated in fmtlib v8, see also
fmtlib/fmt#2646

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
tchaikov added a commit to tchaikov/ceph that referenced this pull request Aug 15, 2022
_format() was deprecated in fmtlib v8, see also
fmtlib/fmt#2646

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 3fd91d7)
idryomov pushed a commit to idryomov/ceph that referenced this pull request Aug 15, 2022
_format() was deprecated in fmtlib v8, see also
fmtlib/fmt#2646

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 3fd91d7)
tchaikov added a commit to tchaikov/ceph that referenced this pull request Aug 15, 2022
_format() was deprecated in fmtlib v8, see also
fmtlib/fmt#2646

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 3fd91d7)
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.

2 participants