Advertisement
Guest User

ScummVM 3DS build warnings (grim+riven+stark engines only) (these warnings occur regardless)

a guest
May 5th, 2023
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.47 KB | None | 0 0
  1. atrus@dni:/mnt/hgfs/scummvm-test/repodocs/scummvm$ (make distclean; ./configure --host=3ds --disable-all-engines --enable-engine=riven,grim,stark --disable-translation --disable-cloud --enable-release --disable-detection-full --enable-plugins --default-dynamic --enable-debug --enable-verbose-build; make dist_3ds; mv -f dist_3ds/scummvm.3dsx dist_3ds/scummvm.cia -t /mnt/hgfs/scummvm-test;) > log.log
  2. rmdir: failed to remove 'test/engine-data': No such file or directory
  3. make: [test/module.mk:80: clean-test] Error 1 (ignored)
  4. backends/platform/3ds/osystem-graphics.cpp: In member function 'void N3DS::OSystem_3DS::init3DSGraphics()':
  5. backends/platform/3ds/osystem-graphics.cpp:85:32: warning: cast from type 'const u8*' {aka 'const unsigned char*'} to type 'u32*' {aka 'long unsigned int*'} casts away qualifiers [-Wcast-qual]
  6. 85 | _dvlb = DVLB_ParseFile((u32*)shader_shbin, shader_shbin_size);
  7. | ^~~~~~~~~~~~~~~~~~
  8. backends/plugins/elf/elf-loader.cpp: In member function 'Elf32_Shdr* DLObject::loadSectionHeaders(Elf32_Ehdr*)':
  9. backends/plugins/elf/elf-loader.cpp:212:58: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Wformat=]
  10. 212 | warning("elfloader: Could not allocate %ld bytes for the section headers", ehdr->e_shnum * sizeof(*shdr));
  11. | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12. | | |
  13. | long int unsigned int
  14. | %d
  15. graphics/tinygl/memory.cpp:34:7: warning: extra tokens at end of #endif directive [-Wendif-labels]
  16. 34 | #endif#include "graphics/tinygl/zgl.h"
  17. | ^
  18. audio/decoders/qdm2.cpp: In member function 'bool Audio::QDM2Stream::qdm2_decodeFrame(Common::SeekableReadStream&, Audio::QueuingAudioStream*)':
  19. audio/decoders/qdm2.cpp:2502:106: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int64' {aka 'long long int'} [-Wformat=]
  20. 2502 | debug(1, "QDM2Stream::qdm2_decodeFrame Insufficient Packet Data in Input Stream Found: %ld Need: %d", in.size() - in.pos(), _packetSize);
  21. | ~~^ ~~~~~~~~~~~~~~~~~~~~
  22. | | |
  23. | long int int64 {aka long long int}
  24. | %lld
  25. common/textconsole.cpp: In function 'void error(const char*, ...)':
  26. common/textconsole.cpp:84:24: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 253 bytes from a string of length 255 [-Wstringop-truncation]
  27. 84 | strncpy(buf_output, buf_input, STRINGBUFLEN);
  28. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  29. common/formats/prodos.cpp: In constructor 'Common::ProDOSFile::ProDOSFile(char*, uint8, uint16, uint32, uint16, Common::File*)':
  30. common/formats/prodos.cpp:34:16: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 16 equals destination size [-Wstringop-truncation]
  31. 34 | strncpy(_name, name, 16);
  32. | ~~~~~~~^~~~~~~~~~~~~~~~~
  33. backends/vkeybd/virtual-keyboard.cpp: In member function 'void Common::VirtualKeyboard::KeyPressQueue::insertKey(Common::KeyState)':
  34. backends/vkeybd/virtual-keyboard.cpp:329:33: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  35. 329 | if (key.keycode >= 0 && key.keycode < keycodeDescTableSize)
  36. | ~~~~~~~~~~~~^~~~
  37. In function 'void Grim::addnchar(const char*, int32)',
  38. inlined from 'void Grim::addstr(const char*)' at engines/grim/lua/lstrlib.cpp:25:10,
  39. inlined from 'void Grim::str_rep()' at engines/grim/lua/lstrlib.cpp:75:9:
  40. engines/grim/lua/lstrlib.cpp:20:16: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
  41. 20 | strncpy(b, s, n);
  42. | ~~~~~~~^~~~~~~~~
  43. In function 'void Grim::addstr(const char*)',
  44. inlined from 'void Grim::str_rep()' at engines/grim/lua/lstrlib.cpp:75:9:
  45. engines/grim/lua/lstrlib.cpp:25:27: note: length computed here
  46. 25 | addnchar(s, strlen(s));
  47. | ~~~~~~^~~
  48. In function 'void Grim::addnchar(const char*, int32)',
  49. inlined from 'void Grim::addstr(const char*)' at engines/grim/lua/lstrlib.cpp:25:10,
  50. inlined from 'void Grim::str_gsub()' at engines/grim/lua/lstrlib.cpp:405:8:
  51. engines/grim/lua/lstrlib.cpp:20:16: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
  52. 20 | strncpy(b, s, n);
  53. | ~~~~~~~^~~~~~~~~
  54. In function 'void Grim::addstr(const char*)',
  55. inlined from 'void Grim::str_gsub()' at engines/grim/lua/lstrlib.cpp:405:8:
  56. engines/grim/lua/lstrlib.cpp:25:27: note: length computed here
  57. 25 | addnchar(s, strlen(s));
  58. | ~~~~~~^~~
  59. In file included from engines/grim/update/update.cpp:23:
  60. In destructor 'virtual Common::SearchSet::~SearchSet()',
  61. inlined from 'virtual Common::SearchSet::~SearchSet()' at ./common/archive.h:261:34,
  62. inlined from 'Common::Archive* Grim::loadUpdateArchive(Common::SeekableReadStream*)' at engines/grim/update/update.cpp:40:10:
  63. ./common/archive.h:261:41: warning: array subscript 'Common::SearchSet::__as_base [0]' is partly outside array bounds of 'unsigned char [12]' [-Warray-bounds]
  64. 261 | virtual ~SearchSet() { clear(); }
  65. | ^
  66. engines/grim/update/update.cpp: In function 'Common::Archive* Grim::loadUpdateArchive(Common::SeekableReadStream*)':
  67. engines/grim/update/update.cpp:36:80: note: object of size 12 allocated by 'operator new'
  68. 36 | Common::Archive *update = new LangFilter(cab, g_grim->getGameLanguage());
  69. | ^
  70. /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/12.2.0/../../../../arm-none-eabi/bin/ld: warning: plugins/grim.plg has a LOAD segment with RWX permissions
  71. /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/12.2.0/../../../../arm-none-eabi/bin/ld: warning: plugins/mohawk.plg has a LOAD segment with RWX permissions
  72. In file included from ./math/squarematrix.h:25,
  73. from ./math/vector3d.h:29,
  74. from ./math/aabb.h:25,
  75. from ./math/ray.h:25,
  76. from ./engines/stark/model/model.h:28,
  77. from ./engines/stark/formats/biffmesh.h:25,
  78. from engines/stark/formats/biffmesh.cpp:22:
  79. In member function 'void Math::MatrixBase<rows, cols>::setData(const float*) [with int rows = 4; int cols = 4]',
  80. inlined from 'Math::MatrixBase<r, c>& Math::MatrixBase<rows, cols>::operator=(const Math::MatrixBase<rows, cols>&) [with int rows = 4; int cols = 4]' at ./math/matrix.h:229:9,
  81. inlined from 'Math::MatrixType<4, 4>& Math::MatrixType<4, 4>::operator=(const Math::MatrixType<4, 4>&)' at ./math/squarematrix.h:36:7,
  82. inlined from 'Math::Matrix<4, 4>& Math::Matrix<4, 4>::operator=(const Math::Matrix<4, 4>&)' at ./math/matrix4.h:35:7,
  83. inlined from 'void Stark::Formats::BiffMesh::setTransform(const Math::Matrix4&)' at engines/stark/formats/biffmesh.cpp:435:15,
  84. inlined from 'static Stark::Formats::BiffMesh* Stark::Formats::BiffMeshReader::read(Stark::ArchiveReadStream*)' at engines/stark/formats/biffmesh.cpp:396:20:
  85. ./math/matrix.h:248:17: warning: 'void* memcpy(void*, const void*, size_t)' offset [0, 63] is out of the bounds [0, 0] [-Warray-bounds]
  86. 248 | ::memcpy(_values, data, rows * cols * sizeof(float));
  87. | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  88. /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/12.2.0/../../../../arm-none-eabi/bin/ld: warning: plugins/stark.plg has a LOAD segment with RWX permissions
  89.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement