summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/patches/0005-assimp-Fix-build-FBXConverter.patch
blob: 9290b30aa8f33fc967b343bec6888fa7e934bdb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 1e39e6b296b94852e73adea1cb652adda435529e Mon Sep 17 00:00:00 2001
From: Anton Kudryavtsev <a.kudryavtsev@netris.ru>
Date: Mon, 21 Mar 2016 16:43:43 +0300
Subject: [PATCH] assimp: Fix build FBXConverter.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

If you compile according to https://wiki.qt.io/Qt5ForAndroidBuilding
with NDK v11.b, you get such warning and the compilation stops:

FBXConverter.cpp:1262:19: warning: ‘count’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      unsigned int count;

Change-Id: Ieff61e6302800a22080f837267982fd2ea3129e6
---
 src/3rdparty/assimp/code/FBXConverter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/3rdparty/assimp/code/FBXConverter.cpp b/src/3rdparty/assimp/code/FBXConverter.cpp
index 56643bc..c6ef8c9 100644
--- a/src/3rdparty/assimp/code/FBXConverter.cpp
+++ b/src/3rdparty/assimp/code/FBXConverter.cpp
@@ -1259,7 +1259,7 @@ private:
 				// taking notes so we don't need to do it twice.
 				BOOST_FOREACH(WeightIndexArray::value_type index, indices) {
 
-					unsigned int count;
+					unsigned int count = 0;
 					const unsigned int* const out_idx = geo.ToOutputVertexIndex(index, count);
 
 					index_out_indices.push_back(no_index_sentinel);
-- 
1.9.1