Skip to content

meta: add SENTRY_DEPRECATED(msg) macro#1308

Merged
jpnurmi merged 9 commits intomasterfrom
meta/deprecated
Jul 10, 2025
Merged

meta: add SENTRY_DEPRECATED(msg) macro#1308
jpnurmi merged 9 commits intomasterfrom
meta/deprecated

Conversation

@jpnurmi
Copy link
Copy Markdown
Collaborator

@jpnurmi jpnurmi commented Jul 10, 2025

image
[build] sentry-native/examples/example.c: In function ‘main’:
[build] sentry-native/examples/example.c:384:5: warning: ‘sentry_sdk_name’ is deprecated: Use `sentry_options_get_sdk_name` instead [-Wdeprecated-declarations]
[build]   384 |     const char *foo = sentry_sdk_name();
[build]       |     ^~~~~
[build] In file included from sentry-native/examples/example.c:9:
[build] sentry-native/include/sentry.h:2593:37: note: declared here
[build]  2593 | SENTRY_EXPERIMENTAL_API const char *sentry_sdk_name(void);
[build]       |                                     ^~~~~~~~~~~~~~~

Docs:

Close: #1307

Copy link
Copy Markdown
Collaborator

@supervacuus supervacuus left a comment

Choose a reason for hiding this comment

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

None of these compilers could compile crashpad, but I still appreciate the version checks.

@jpnurmi jpnurmi marked this pull request as ready for review July 10, 2025 16:13
@jpnurmi jpnurmi merged commit 9ed9a70 into master Jul 10, 2025
58 of 61 checks passed
@jpnurmi jpnurmi deleted the meta/deprecated branch July 10, 2025 16:15
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.

Deprecation macro

2 participants