[Bf-blender-cvs] [75536b5a61f] master: Cleanup: compiler warnings
Campbell Barton
noreply at git.blender.org
Fri Apr 30 16:50:34 CEST 2021
Commit: 75536b5a61fc7389b31a4244f139c5db00070c48
Author: Campbell Barton
Date: Sat May 1 00:49:55 2021 +1000
Branches: master
https://developer.blender.org/rB75536b5a61fc7389b31a4244f139c5db00070c48
Cleanup: compiler warnings
===================================================================
M source/blender/python/gpu/gpu_py_framebuffer.c
M source/blender/python/gpu/gpu_py_texture.c
===================================================================
diff --git a/source/blender/python/gpu/gpu_py_framebuffer.c b/source/blender/python/gpu/gpu_py_framebuffer.c
index adb3c485537..7f64cb90a97 100644
--- a/source/blender/python/gpu/gpu_py_framebuffer.c
+++ b/source/blender/python/gpu/gpu_py_framebuffer.c
@@ -644,7 +644,7 @@ PyObject *BPyGPUFrameBuffer_CreatePyObject(GPUFrameBuffer *fb, bool shared_refer
void **ref = GPU_framebuffer_py_reference_get(fb);
if (ref) {
/* Retrieve BPyGPUFrameBuffer reference. */
- self = POINTER_OFFSET(ref, -offsetof(BPyGPUFrameBuffer, fb));
+ self = (BPyGPUFrameBuffer *)POINTER_OFFSET(ref, -offsetof(BPyGPUFrameBuffer, fb));
BLI_assert(self->fb == fb);
Py_INCREF(self);
return (PyObject *)self;
@@ -661,7 +661,7 @@ PyObject *BPyGPUFrameBuffer_CreatePyObject(GPUFrameBuffer *fb, bool shared_refer
self->shared_reference = shared_reference;
BLI_assert(GPU_framebuffer_py_reference_get(fb) == NULL);
- GPU_framebuffer_py_reference_set(fb, &self->fb);
+ GPU_framebuffer_py_reference_set(fb, (void **)&self->fb);
#endif
return (PyObject *)self;
diff --git a/source/blender/python/gpu/gpu_py_texture.c b/source/blender/python/gpu/gpu_py_texture.c
index 7e0a642dbbc..4df61d35d4c 100644
--- a/source/blender/python/gpu/gpu_py_texture.c
+++ b/source/blender/python/gpu/gpu_py_texture.c
@@ -604,7 +604,7 @@ PyObject *BPyGPUTexture_CreatePyObject(GPUTexture *tex, bool shared_reference)
void **ref = GPU_texture_py_reference_get(tex);
if (ref) {
/* Retrieve BPyGPUTexture reference. */
- self = POINTER_OFFSET(ref, -offsetof(BPyGPUTexture, tex));
+ self = (BPyGPUTexture *)POINTER_OFFSET(ref, -offsetof(BPyGPUTexture, tex));
BLI_assert(self->tex == tex);
Py_INCREF(self);
return (PyObject *)self;
@@ -619,7 +619,7 @@ PyObject *BPyGPUTexture_CreatePyObject(GPUTexture *tex, bool shared_reference)
#ifndef GPU_NO_USE_PY_REFERENCES
BLI_assert(GPU_texture_py_reference_get(tex) == NULL);
- GPU_texture_py_reference_set(tex, &self->tex);
+ GPU_texture_py_reference_set(tex, (void **)&self->tex);
#endif
return (PyObject *)self;
More information about the Bf-blender-cvs
mailing list