From 5ba8b529238162acec20b33458a43c281a72fc52 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 21 Aug 2013 20:45:51 +0000 Subject: set nonnull args for BLI_qsort_r --- source/blender/blenlib/BLI_sort.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_sort.h') 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__ */ -- cgit v1.2.3