-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Conversation
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. |
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. |
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. |
fe302bf
to
f2d1cbf
Compare
Thank you! |
_format() was deprecated in fmtlib v8, see also fmtlib/fmt#2646 Signed-off-by: Kefu Chai <[email protected]>
_format() was deprecated in fmtlib v8, see also fmtlib/fmt#2646 Signed-off-by: Kefu Chai <[email protected]>
_format() was deprecated in fmtlib v8, see also fmtlib/fmt#2646 Signed-off-by: Kefu Chai <[email protected]>
_format() was deprecated in fmtlib v8, see also fmtlib/fmt#2646 Signed-off-by: Kefu Chai <[email protected]>
_format() was deprecated in fmtlib v8, see also fmtlib/fmt#2646 Signed-off-by: Kefu Chai <[email protected]>
_format() was deprecated in fmtlib v8, see also fmtlib/fmt#2646 Signed-off-by: Kefu Chai <[email protected]> (cherry picked from commit 3fd91d7)
_format() was deprecated in fmtlib v8, see also fmtlib/fmt#2646 Signed-off-by: Kefu Chai <[email protected]> (cherry picked from commit 3fd91d7)
_format() was deprecated in fmtlib v8, see also fmtlib/fmt#2646 Signed-off-by: Kefu Chai <[email protected]> (cherry picked from commit 3fd91d7)
Originated from discussion in #2640.
The
_format
-related test moved to separate test suite, since tests are not allowed to have warnings (withFMT_PEDANTIC
andFMT_WERROR
) andFMT_DEPRECATED
produces one. This way, we still can be sure that_format
works fine.