aboutsummaryrefslogtreecommitdiff
path: root/src/func_attr.h
Commit message (Collapse)AuthorAge
* func-attr: add some extra handy function attrsNicolas Hillegeer2014-03-31
| | | | | | | | | | | The attributes in question are: - nonnull: specify whether a function argument cannot/may not be null - returns_nonnull: specify whether a function will not return a null pointer (example: xmalloc can't return null, so it should be annotated as such). Only available from gcc 4.9 onwards. Currently these attributes are only supported by gcc.
* func-attr: clang 3.5 doesn't support alloc_sizeNicolas Hillegeer2014-03-31
| | | | | | | The attribute was removed in commit c047507 in the clang repository as it was never properly implemented anyway. This fixes compiling with clang 3.5. Fixes issue #429
* add func_attr.h to be able to use func attribsNicolas Hillegeer2014-03-29
Currently enables these for every gnu-like compilers, i.e.: gcc, clang and icc.