diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2017-05-24 12:09:44 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-05-24 12:10:02 +0100 |
commit | 77d294db076dac19e8b549b445ffede9f7260c84 (patch) | |
tree | 828ee7a6862ec5c0bd24f97cb540625a2c647376 /src/3rdparty/patches/0001-assimp-Fix-type-warnings.patch | |
parent | 59f8fec8a41606b3185fe3a4e276978e3e1ed5ef (diff) | |
parent | 939b9b4b7591e8a421cf048a0a84ed3e75d81d21 (diff) |
Merge branch 'dev' into wip/animationwip/animation
Change-Id: I6e770609c90a7745d08fa4e2f424e865678c5d6f
Diffstat (limited to 'src/3rdparty/patches/0001-assimp-Fix-type-warnings.patch')
-rw-r--r-- | src/3rdparty/patches/0001-assimp-Fix-type-warnings.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/3rdparty/patches/0001-assimp-Fix-type-warnings.patch b/src/3rdparty/patches/0001-assimp-Fix-type-warnings.patch new file mode 100644 index 000000000..1d97a64b4 --- /dev/null +++ b/src/3rdparty/patches/0001-assimp-Fix-type-warnings.patch @@ -0,0 +1,48 @@ +diff -ur assimpGIT/code/AssxmlExporter.cpp assimp/code/AssxmlExporter.cpp +--- assimpGIT/code/AssxmlExporter.cpp 2016-12-08 14:13:07.000000000 -0500 ++++ assimp/code/AssxmlExporter.cpp 2016-12-08 09:23:22.000000000 -0500 +@@ -72,7 +72,7 @@ + return -1; + } + +- static const size_t Size = 4096; ++ static const int Size = 4096; + char sz[ Size ]; + size_t len( strlen( format ) ); + ::memset( sz, '\0', Size ); +diff -ur assimpGIT/code/glTFAssetWriter.inl assimp/code/glTFAssetWriter.inl +--- assimpGIT/code/glTFAssetWriter.inl 2016-12-08 14:13:07.000000000 -0500 ++++ assimp/code/glTFAssetWriter.inl 2016-12-08 10:14:27.000000000 -0500 +@@ -56,7 +56,7 @@ + inline Value& MakeValue(Value& val, float(&r)[N], MemoryPoolAllocator<>& al) { + val.SetArray(); + val.Reserve(N, al); +- for (int i = 0; i < N; ++i) { ++ for (decltype(N) i = 0; i < N; ++i) { + val.PushBack(r[i], al); + } + return val; +diff -ur assimpGIT/contrib/openddlparser/code/OpenDDLExport.cpp assimp/contrib/openddlparser/code/OpenDDLExport.cpp +--- assimpGIT/contrib/openddlparser/code/OpenDDLExport.cpp 2016-12-08 14:13:07.000000000 -0500 ++++ assimp/contrib/openddlparser/code/OpenDDLExport.cpp 2016-12-08 09:23:22.000000000 -0500 +@@ -280,7 +280,7 @@ + statement += "["; + char buffer[ 256 ]; + ::memset( buffer, '\0', 256 * sizeof( char ) ); +- sprintf( buffer, "%d", numItems ); ++ sprintf( buffer, "%d", int(numItems) ); + statement += buffer; + statement += "]"; + } +diff -ur assimpGIT/contrib/openddlparser/include/openddlparser/OpenDDLParserUtils.h assimp/contrib/openddlparser/include/openddlparser/OpenDDLParserUtils.h +--- assimpGIT/contrib/openddlparser/include/openddlparser/OpenDDLParserUtils.h 2016-12-08 14:13:07.000000000 -0500 ++++ assimp/contrib/openddlparser/include/openddlparser/OpenDDLParserUtils.h 2016-12-08 09:23:22.000000000 -0500 +@@ -84,7 +84,7 @@ + template<class T> + inline + bool isNumeric( const T in ) { +- return ( chartype_table[ in ] == 1 ); ++ return ( chartype_table[ static_cast<int>( in ) ] == 1 ); + } + + template<class T> |