mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Silence duplicate symbol runtime warning (#5068)
Similar to #4901 but updated with a new warning from Xcode 15 beta 1. Increase dupclass max name length from 64 to 128
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
// Struct layout from https://github.com/apple-oss-distributions/objc4/blob/8701d5672d3fd3cd817aeb84db1077aafe1a1604/runtime/objc-abi.h#L175-L183
|
||||
#define OBJC_DUPCLASS(kclass) \
|
||||
__attribute__((used)) __attribute__((visibility("hidden"))) \
|
||||
static struct { uint32_t version; uint32_t flags; const char name[64]; } \
|
||||
static struct { uint32_t version; uint32_t flags; const char name[128]; } \
|
||||
const __duplicate_class_##kclass = { 0, 0, #kclass }; \
|
||||
\
|
||||
__attribute__((used)) __attribute__((visibility("hidden"))) \
|
||||
|
||||
Reference in New Issue
Block a user