"Fossies" - the Fresh Open Source Software Archive

Member "qt-everywhere-src-6.3.1/qt3d/src/3rdparty/patches/0001-assimp-Fix-type-warnings.patch" (8 Jun 2022, 2174 Bytes) of package /linux/misc/qt-everywhere-src-6.3.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 diff -ur assimpGIT/code/AssxmlExporter.cpp assimp/code/AssxmlExporter.cpp
    2 --- assimpGIT/code/AssxmlExporter.cpp   2016-12-08 14:13:07.000000000 -0500
    3 +++ assimp/code/AssxmlExporter.cpp  2016-12-08 09:23:22.000000000 -0500
    4 @@ -72,7 +72,7 @@
    5          return -1;
    6      }
    7  
    8 -    static const size_t Size = 4096;
    9 +    static const int Size = 4096;
   10      char sz[ Size ];
   11      size_t len( strlen( format ) );
   12      ::memset( sz, '\0', Size );
   13 diff -ur assimpGIT/code/glTFAssetWriter.inl assimp/code/glTFAssetWriter.inl
   14 --- assimpGIT/code/glTFAssetWriter.inl  2016-12-08 14:13:07.000000000 -0500
   15 +++ assimp/code/glTFAssetWriter.inl 2016-12-08 10:14:27.000000000 -0500
   16 @@ -56,7 +56,7 @@
   17          inline Value& MakeValue(Value& val, float(&r)[N], MemoryPoolAllocator<>& al) {
   18              val.SetArray();
   19              val.Reserve(N, al);
   20 -            for (int i = 0; i < N; ++i) {
   21 +            for (decltype(N) i = 0; i < N; ++i) {
   22                  val.PushBack(r[i], al);
   23              }
   24              return val;
   25 diff -ur assimpGIT/contrib/openddlparser/code/OpenDDLExport.cpp assimp/contrib/openddlparser/code/OpenDDLExport.cpp
   26 --- assimpGIT/contrib/openddlparser/code/OpenDDLExport.cpp  2016-12-08 14:13:07.000000000 -0500
   27 +++ assimp/contrib/openddlparser/code/OpenDDLExport.cpp 2016-12-08 09:23:22.000000000 -0500
   28 @@ -280,7 +280,7 @@
   29          statement += "[";
   30          char buffer[ 256 ];
   31          ::memset( buffer, '\0', 256 * sizeof( char ) );
   32 -        sprintf( buffer, "%d", numItems );
   33 +        sprintf( buffer, "%d", int(numItems) );
   34          statement += buffer;
   35          statement += "]";
   36      }
   37 diff -ur assimpGIT/contrib/openddlparser/include/openddlparser/OpenDDLParserUtils.h assimp/contrib/openddlparser/include/openddlparser/OpenDDLParserUtils.h
   38 --- assimpGIT/contrib/openddlparser/include/openddlparser/OpenDDLParserUtils.h  2016-12-08 14:13:07.000000000 -0500
   39 +++ assimp/contrib/openddlparser/include/openddlparser/OpenDDLParserUtils.h 2016-12-08 09:23:22.000000000 -0500
   40 @@ -84,7 +84,7 @@
   41  template<class T>
   42  inline
   43  bool isNumeric( const T in ) {
   44 -   return ( chartype_table[ in ] == 1 );
   45 +   return ( chartype_table[ static_cast<int>( in ) ] == 1 );
   46  }
   47  
   48  template<class T>