Skip to content

Sentry deprecation warnings in Unreal project #867

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

Closed
perholmes opened this issue Apr 10, 2025 · 2 comments · Fixed by #868
Closed

Sentry deprecation warnings in Unreal project #867

perholmes opened this issue Apr 10, 2025 · 2 comments · Fixed by #868

Comments

@perholmes
Copy link

perholmes commented Apr 10, 2025

Using the 1.0.0 alpha 4, I get the following deprecation warnings. Since the Sentry.build.cs file doesn't allow changing the compiler arguments, I've had to add pragmas directly to the code.

0>AppleSentrySubsystem.cpp(324,103): Warning  : 'initWithName:operation:traceId:spanId:parentSpanId:parentSampled:' is deprecated: Use initWithName:operation:traceId:spanId:parentSpanId:parentSampled:parentSampleRate:parentSampleRand instead [-Wdeprecated-declarations]
0>  324 |         SentryTransactionContext* transactionContext = [[SENTRY_APPLE_CLASS(SentryTransactionContext) alloc] initWithName:@"<unlabeled transaction>" operation:@"default"
0>      |                                                                                                              ^
0>SentryTransactionContext.h(100,5): Reference  : 'initWithName:operation:traceId:spanId:parentSpanId:parentSampled:' has been explicitly marked deprecated here
0>  100 |     DEPRECATED_MSG_ATTRIBUTE("Use "
0>      |     ^
0>AvailabilityMacros.h(152,64): Reference  : expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
0>  152 |             #define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
0>      |                                                                ^
0>In file included from /Volumes/Thunderbolt/Dev/Unreal/ShotDesigner/Plugins/sentry-unreal-1.0.0-alpha.4-engine5.5-github/Intermediate/Build/Mac/arm64/UnrealGame/DebugGame/Sentry/Module.Sentry.2.cpp:21:
0>SentryUserFeedbackApple.cpp(22,1): Warning  : 'SentryUserFeedback' is deprecated: Use SentryFeedback. [-Wdeprecated-declarations]
0>   22 | SentryUserFeedback* SentryUserFeedbackApple::GetNativeObject()
0>      | ^
0>SentryUserFeedback.h(17,29): Reference  : 'SentryUserFeedback' has been explicitly marked deprecated here
0>   17 | NS_SWIFT_NAME(UserFeedback) DEPRECATED_MSG_ATTRIBUTE("Use SentryFeedback.")
0>      |                             ^
0>AvailabilityMacros.h(152,64): Reference  : expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
0>  152 |             #define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
0>      |                                                                ^
0>2 warnings generated.```
@tustanivsky
Copy link
Collaborator

@perholmes Thank you for raising this! The fix for these warnings will be included in the next plugin release (see #868).

@perholmes
Copy link
Author

Great!

@github-project-automation github-project-automation bot moved this to Done in GDX Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants