-
Notifications
You must be signed in to change notification settings - Fork 7.6k
toolchain: Add the __deprecated_version macro #91934
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
base: main
Are you sure you want to change the base?
Conversation
bad5d4e
to
7a8f165
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, the warning message output by this macro is rather cryptic:
test.c:19:5: warning: 'foo' is deprecated: 4.3 [-Wdeprecated-declarations]
The message should be more clear to say something like "planned removal in v4.3"
7a8f165
to
24a7853
Compare
Add the `__deprecated_version` macro to print version information when deprecation warnings are triggered. Signed-off-by: James Roy <rruuaanng@outlook.com>
Add the `__deprecated_version` macro to print version information when deprecation warnings are triggered. Signed-off-by: James Roy <rruuaanng@outlook.com>
Add `__deprecated_version` macro to the Toolchain entry list. Signed-off-by: James Roy <rruuaanng@outlook.com>
24a7853
to
6dabbab
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For more to see #87662
Closes: #87662