summaryrefslogtreecommitdiff
path: root/core/image.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-10-04 14:19:05 +0200
committerGitHub <noreply@github.com>2018-10-04 14:19:05 +0200
commit181af9b48431a5697056c561c9e2edafc7d738f0 (patch)
treed184ffe31ecab4cbcb194fa67f294b80b505cc51 /core/image.cpp
parent674b2567ae9fc367c01de1a70f83a62d8a6de071 (diff)
parentf48ee838e7b88a630f9dea76b697eb4626d69abc (diff)
Merge pull request #22713 from akien-mga/fix-warnings
Fix GCC 8 warnings about potentially unitialized variables
Diffstat (limited to 'core/image.cpp')
-rw-r--r--core/image.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/image.cpp b/core/image.cpp
index e90ed96499..e2b56c51dc 100644
--- a/core/image.cpp
+++ b/core/image.cpp
@@ -780,9 +780,9 @@ void Image::resize(int p_width, int p_height, Interpolation p_interpolation) {
// Setup mipmap-aware scaling
Image dst2;
- int mip1;
- int mip2;
- float mip1_weight;
+ int mip1 = 0;
+ int mip2 = 0;
+ float mip1_weight = 0;
if (mipmap_aware) {
float avg_scale = ((float)p_width / width + (float)p_height / height) * 0.5f;
if (avg_scale >= 1.0f) {