Overview
Comment: | Add OF_WARN_UNUSED_RESULT |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
7c79db860d0be248f642d22f0afae475 |
User & Date: | js on 2017-11-05 02:58:00 |
Other Links: | manifest | tags |
Context
2017-11-05
| ||
18:01 | Add OFCharacterSet check-in: 7c30d6a2e2 user: js tags: trunk | |
02:58 | Add OF_WARN_UNUSED_RESULT check-in: 7c79db860d user: js tags: trunk | |
2017-11-04
| ||
22:02 | OFString+URLEncoding: Small optimization check-in: d1258ca0b6 user: js tags: trunk | |
Changes
Modified src/OFObject.h from [fa7289510f] to [288587471e].
︙ | |||
665 666 667 668 669 670 671 | 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 | - + - + - + - + | * * It will be freed automatically when the object is deallocated. * * @param size The size of the memory to allocate * @return A pointer to the allocated memory. May return NULL if the specified * size is 0. */ |
︙ |
Modified src/macros.h from [059976bd73] to [66bafa72fb].
︙ | |||
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 | 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 | + + | #else # define OF_UNREACHABLE abort(); #endif #if defined(__clang__) || OF_GCC_VERSION >= 406 # define OF_SENTINEL __attribute__((__sentinel__)) # define OF_NO_RETURN __attribute__((__noreturn__)) # define OF_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__)) #else # define OF_SENTINEL # define OF_NO_RETURN # define OF_WARN_UNUSED_RESULT #endif #if __has_attribute(__unavailable__) # define OF_UNAVAILABLE __attribute__((__unavailable__)) #else # define OF_UNAVAILABLE #endif |
︙ |