Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-08-22 00:45:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-22 00:45:51 +0400
commit5ba8b529238162acec20b33458a43c281a72fc52 (patch)
tree933a864e166019b48ef2cbc414ce8641ec6eac06 /source/blender/blenlib/BLI_sort.h
parent4dd9353e563ebe56fce0835d7a63ffb6454f73ab (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.h6
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__ */