diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-22 00:45:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-22 00:45:51 +0400 |
commit | 5ba8b529238162acec20b33458a43c281a72fc52 (patch) | |
tree | 933a864e166019b48ef2cbc414ce8641ec6eac06 /source/blender/blenlib/BLI_sort.h | |
parent | 4dd9353e563ebe56fce0835d7a63ffb6454f73ab (diff) |
set nonnull args for BLI_qsort_r
Diffstat (limited to 'source/blender/blenlib/BLI_sort.h')
-rw-r--r-- | source/blender/blenlib/BLI_sort.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_sort.h b/source/blender/blenlib/BLI_sort.h index 9e533aac758..4df17d98a4b 100644 --- a/source/blender/blenlib/BLI_sort.h +++ b/source/blender/blenlib/BLI_sort.h @@ -36,6 +36,10 @@ /* Quick sort reentrant */ typedef int (*BLI_sort_cmp_t)(void *ctx, const void *a, const void *b); -void BLI_qsort_r(void *a, size_t n, size_t es, void *thunk, BLI_sort_cmp_t cmp); +void BLI_qsort_r(void *a, size_t n, size_t es, void *thunk, BLI_sort_cmp_t cmp) +#ifdef __GNUC__ +__attribute__((nonnull(1, 5))) +#endif +; #endif /* __BLI_SORT_H__ */ |