util/u_vector: prevent C++ warning on cast from void* to something else
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sun, 28 Nov 2021 19:33:36 +0000 (21:33 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 7 Dec 2021 19:41:06 +0000 (19:41 +0000)
commita3886fa471f0b68229bc1642a39c869023c3f014
tree7f99b3fa09982ddfe3e9d058da81cb5012f9bcec
parent55b396e7430f16b3de3999d8f5a191bc1ae44b70
util/u_vector: prevent C++ warning on cast from void* to something else

v2: fix windows build

v3: duplicate foreach macro for C/C++

v4: Extract casting macro

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com> (v3)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13997>
src/util/u_vector.h