Overview
Comment: | Always implement dummy for OF_UNAVAILABLE methods
GCC now supports the attribute, but still complains if the method is not |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e53c0160a85eca8ca158913b7def191f |
User & Date: | js on 2022-06-06 07:06:25 |
Other Links: | manifest | tags |
Context
2022-06-06
| ||
09:04 | Remove spurious OF_UNAVAILABLE in @implementation check-in: 4d317d9ea7 user: js tags: trunk | |
07:06 | Always implement dummy for OF_UNAVAILABLE methods check-in: e53c0160a8 user: js tags: trunk | |
2022-06-05
| ||
12:34 | generators/unicode: Fix two inverted lines check-in: 4a5d37fc3b user: js tags: trunk | |
Changes
Modified src/OFNumber.h from [312b6f2b4b] to [eff21822aa].
︙ | |||
120 121 122 123 124 125 126 | 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | - - | @property (readonly, nonatomic) double doubleValue; /** * @brief The OFNumber as a string. */ @property (readonly, nonatomic) OFString *stringValue; |
︙ | |||
236 237 238 239 240 241 242 | 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 | - - | * * @param value The `double` value which the OFNumber should contain * @return A new autoreleased OFNumber */ + (instancetype)numberWithDouble: (double)value; - (instancetype)init OF_UNAVAILABLE; |
︙ |
Modified src/OFNumber.m from [bc852126ea] to [fd08ff8e66].
︙ | |||
507 508 509 510 511 512 513 514 515 516 517 518 519 520 | 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | + (instancetype)alloc { if (self == [OFNumber class]) return (id)&placeholder; return [super alloc]; } + (instancetype)valueWithBytes: (const void *)bytes objCType: (const char *)objCType { OF_UNRECOGNIZED_SELECTOR } + (instancetype)valueWithPointer: (const void *)pointer { OF_UNRECOGNIZED_SELECTOR } + (instancetype)valueWithNonretainedObject: (id)object { OF_UNRECOGNIZED_SELECTOR } + (instancetype)valueWithRange: (OFRange)range { OF_UNRECOGNIZED_SELECTOR } + (instancetype)valueWithPoint: (OFPoint)point { OF_UNRECOGNIZED_SELECTOR } + (instancetype)valueWithSize: (OFSize)size { OF_UNRECOGNIZED_SELECTOR } + (instancetype)valueWithRect: (OFRect)rect { OF_UNRECOGNIZED_SELECTOR } + (instancetype)numberWithBool: (bool)value { return [[[self alloc] initWithBool: value] autorelease]; } + (instancetype)numberWithChar: (signed char)value |
︙ | |||
575 576 577 578 579 580 581 582 583 584 585 586 587 588 | 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 | + + + + + + | + (instancetype)numberWithDouble: (double)value { return [[[self alloc] initWithDouble: value] autorelease]; } - (instancetype)init { OF_INVALID_INIT_METHOD } - (instancetype)initWithBytes: (const void *)bytes objCType: (const char *)objCType { OF_INVALID_INIT_METHOD } - (instancetype)initWithBool: (bool)value { self = [super init]; |
︙ |
Modified src/macros.h from [5676813928] to [60a41b82a1].
︙ | |||
252 253 254 255 256 257 258 | 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | - | # define OF_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__)) #else # define OF_WARN_UNUSED_RESULT #endif #if __has_attribute(__unavailable__) # define OF_UNAVAILABLE __attribute__((__unavailable__)) |
︙ |