mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Runtime] Add the inline attribute to CRGet/SetCrashLogMessage functions to silence warnings about unused functions.
rdar://problem/39579513
This commit is contained in:
@@ -46,19 +46,19 @@ extern struct crashreporter_annotations_t gCRAnnotations;
|
||||
}
|
||||
|
||||
LLVM_ATTRIBUTE_ALWAYS_INLINE
|
||||
static void CRSetCrashLogMessage(const char *message) {
|
||||
static inline void CRSetCrashLogMessage(const char *message) {
|
||||
gCRAnnotations.message = reinterpret_cast<uint64_t>(message);
|
||||
}
|
||||
|
||||
LLVM_ATTRIBUTE_ALWAYS_INLINE
|
||||
static const char *CRGetCrashLogMessage() {
|
||||
static inline const char *CRGetCrashLogMessage() {
|
||||
return reinterpret_cast<const char *>(gCRAnnotations.message);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
LLVM_ATTRIBUTE_ALWAYS_INLINE
|
||||
static void CRSetCrashLogMessage(const char *) {}
|
||||
static inline void CRSetCrashLogMessage(const char *) {}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user