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:
authorCampbell Barton <ideasman42@gmail.com>2019-04-02 09:54:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-02 09:54:04 +0300
commit6470056a0d1ed1a07c823d46ea292d69d3c2a8fb (patch)
treed0aebdd1981fba294408cdda08e799e7f0e525e0 /source/blender/gpu
parent17c15798c35f33e4150beacb0f7b612bcef90c3e (diff)
Cleanup: empty expression statement warning
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_texture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c
index 5398db82586..8aafe349be8 100644
--- a/source/blender/gpu/intern/gpu_texture.c
+++ b/source/blender/gpu/intern/gpu_texture.c
@@ -1385,13 +1385,13 @@ int GPU_texture_bound_number(GPUTexture *tex)
return tex->number;
}
-#define WARN_NOT_BOUND(_tex) do { \
+#define WARN_NOT_BOUND(_tex) { \
if (_tex->number == -1) { \
fprintf(stderr, "Warning : Trying to set parameter on a texture not bound.\n"); \
BLI_assert(0); \
return; \
} \
-} while (0);
+} ((void)0)
void GPU_texture_generate_mipmap(GPUTexture *tex)
{