Differences From Artifact [4089255adf]:
- File src/macros.h — part of check-in [7c30d6a2e2] at 2017-11-05 18:01:21 on branch trunk — Add OFCharacterSet (user: js, size: 20056) [annotate] [blame] [check-ins using]
To Artifact [58ba402fca]:
- File
src/macros.h
— part of check-in
[f12043ee28]
at
2017-11-13 22:19:10
on branch trunk
— Only use OF_WARN_UNUSED_RESULT with Clang
GCC does not support it. (user: js, size: 20087) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
209 210 211 212 213 214 215 | #else # define OF_UNREACHABLE abort(); #endif #if defined(__clang__) || OF_GCC_VERSION >= 406 # define OF_SENTINEL __attribute__((__sentinel__)) # define OF_NO_RETURN __attribute__((__noreturn__)) | < > > > > > | 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | #else # define OF_UNREACHABLE abort(); #endif #if defined(__clang__) || OF_GCC_VERSION >= 406 # define OF_SENTINEL __attribute__((__sentinel__)) # define OF_NO_RETURN __attribute__((__noreturn__)) #else # define OF_SENTINEL # define OF_NO_RETURN #endif #ifdef __clang__ # 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__)) #else # define OF_UNAVAILABLE |
︙ | ︙ |