[Bf-blender-cvs] [3e67e2a36e9] master: Cleanup: compiler warning (ignored-qualifiers)

Campbell Barton noreply at git.blender.org
Wed Mar 10 05:49:04 CET 2021


Commit: 3e67e2a36e92fad95099dada8727486746722428
Author: Campbell Barton
Date:   Wed Mar 10 15:35:43 2021 +1100
Branches: master
https://developer.blender.org/rB3e67e2a36e92fad95099dada8727486746722428

Cleanup: compiler warning (ignored-qualifiers)

===================================================================

M	source/blender/blenlib/BLI_array_utils.h
M	source/blender/blenlib/intern/array_utils.c

===================================================================

diff --git a/source/blender/blenlib/BLI_array_utils.h b/source/blender/blenlib/BLI_array_utils.h
index 8f4630dd732..2847bc960ad 100644
--- a/source/blender/blenlib/BLI_array_utils.h
+++ b/source/blender/blenlib/BLI_array_utils.h
@@ -93,7 +93,7 @@ bool _bli_array_iter_spiral_square(const void *arr_v,
                                    const int arr_shape[2],
                                    const size_t elem_size,
                                    const int center[2],
-                                   const bool (*test_fn)(const void *arr_item, void *user_data),
+                                   bool (*test_fn)(const void *arr_item, void *user_data),
                                    void *user_data);
 #define BLI_array_iter_spiral_square(arr, arr_shape, center, test_fn, user_data) \
   _bli_array_iter_spiral_square(arr, arr_shape, sizeof(*(arr)), center, test_fn, user_data)
diff --git a/source/blender/blenlib/intern/array_utils.c b/source/blender/blenlib/intern/array_utils.c
index 5d35cf09c30..5bf50b029a5 100644
--- a/source/blender/blenlib/intern/array_utils.c
+++ b/source/blender/blenlib/intern/array_utils.c
@@ -330,7 +330,7 @@ bool _bli_array_iter_spiral_square(const void *arr_v,
                                    const int arr_shape[2],
                                    size_t elem_size,
                                    const int center[2],
-                                   const bool (*test_fn)(const void *arr_item, void *user_data),
+                                   bool (*test_fn)(const void *arr_item, void *user_data),
                                    void *user_data)
 {
   BLI_assert(center[0] >= 0 && center[1] >= 0 && center[0] < arr_shape[0] &&



More information about the Bf-blender-cvs mailing list