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:
authorBrecht Van Lommel <brecht@blender.org>2021-06-24 20:17:51 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-06-24 20:35:23 +0300
commitb5840f9b5ba912f016db01dfcd5b28f32195c147 (patch)
tree33863cc91b80cb00c0745077a3f256631bd38814 /source/blender/blenlib
parentbeb6399ae5971fdbbf8aa6eb8832200afabeb97d (diff)
Cleanup: compiler warnings with clang
* Mark either all or no class methods with override * Don't use zero sized array since it has a different size in C and C++. Using a little more memory here is not significant. * Don't use deprecated mechanism to mark private GSet members in clang just like we don't for MSVC, it warns even for simple zero initialization.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/BLI_ghash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_ghash.h b/source/blender/blenlib/BLI_ghash.h
index bc517f81955..b53b8a433d2 100644
--- a/source/blender/blenlib/BLI_ghash.h
+++ b/source/blender/blenlib/BLI_ghash.h
@@ -234,7 +234,7 @@ void *BLI_gset_pop_key(GSet *gs, const void *key) ATTR_WARN_UNUSED_RESULT;
/* so we can cast but compiler sees as different */
typedef struct GSetIterator {
GHashIterator _ghi
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__clang__)
__attribute__((deprecated))
#endif
;