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/gpu
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/gpu')
-rw-r--r--source/blender/gpu/GPU_viewport.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/gpu/GPU_viewport.h b/source/blender/gpu/GPU_viewport.h
index 095e17f344e..d6c544764fb 100644
--- a/source/blender/gpu/GPU_viewport.h
+++ b/source/blender/gpu/GPU_viewport.h
@@ -62,21 +62,21 @@ typedef struct ViewportMemoryPool {
uint ubo_len;
} ViewportMemoryPool;
-/* All FramebufferLists are just the same pointers with different names */
+/*eAll FramebufferLists are just the same pointers with different names */
typedef struct FramebufferList {
- struct GPUFrameBuffer *framebuffers[0];
+ struct GPUFrameBuffer *framebuffers[1];
} FramebufferList;
typedef struct TextureList {
- struct GPUTexture *textures[0];
+ struct GPUTexture *textures[1];
} TextureList;
typedef struct PassList {
- struct DRWPass *passes[0];
+ struct DRWPass *passes[1];
} PassList;
typedef struct StorageList {
- void *storage[0]; /* custom structs from the engine */
+ void *storage[1]; /* custom structs from the engine */
} StorageList;
typedef struct ViewportEngineData {