Guest User

Untitled

a guest
Aug 14th, 2022
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 154.01 KB | None | 0 0
  1. List of warnings in PPSSPP with -Wall.
  2. Suitable for e.g.
  3. vim -q warnings.txt
  4. from top-level source directory.
  5.  
  6. Warnings breakdown:
  7. 187 -Wunused-variable
  8. 126 -Wreorder
  9. 92 -Wsign-compare
  10. 21 -Wunknown-pragmas
  11. 20 -Wstringop-truncation
  12. 16 -Wunused-but-set-variable
  13. 16 -Wmaybe-uninitialized
  14. 9 -Wmisleading-indentation
  15. 7 -Wunused-function
  16. 6 -Wclass-memaccess
  17. 3 -Warray-bounds
  18. 2 -Wunused-const-variable=
  19. 2 -Wsizeof-pointer-div
  20. 2 -Wrestrict
  21. 1 -Wswitch
  22. 1 -Wstringop-overflow=
  23. 1 -Wsizeof-pointer-memaccess
  24. 1 -Wparentheses
  25. 1 -Wcpp
  26.  
  27. In file included from ./ext/vma/vk_mem_alloc.cpp:15:
  28. ./ext/vma/vk_mem_alloc.h: In member function ‘virtual void VmaBlockMetadata_Generic::CalcAllocationStatInfo(VmaStatInfo&) const’:
  29. ./ext/vma/vk_mem_alloc.h:7994:20: warning: unused variable ‘rangeCount’ [-Wunused-variable]
  30. 7994 | const uint32_t rangeCount = (uint32_t)m_Suballocations.size();
  31. | ^~~~~~~~~~
  32. ./ext/vma/vk_mem_alloc.h: In member function ‘virtual void VmaBlockMetadata_Linear::Alloc(const VmaAllocationRequest&, VmaSuballocationType, void*)’:
  33. ./ext/vma/vk_mem_alloc.h:10379:38: warning: unused variable ‘suballocations1st’ [-Wunused-variable]
  34. 10379 | SuballocationVectorType& suballocations1st = AccessSuballocations1st();
  35. | ^~~~~~~~~~~~~~~~~
  36. ./ext/vma/vk_mem_alloc.h: In member function ‘void VmaBlockMetadata_Buddy::DeleteNodeChildren(VmaBlockMetadata_Buddy::Node*)’:
  37. ./ext/vma/vk_mem_alloc.h:11002:38: warning: unused variable ‘allocationCallbacks’ [-Wunused-variable]
  38. 11002 | const VkAllocationCallbacks* allocationCallbacks = GetAllocationCallbacks();
  39. | ^~~~~~~~~~~~~~~~~~~
  40. ./ext/vma/vk_mem_alloc.h: In member function ‘VkResult VmaBlockVector::AllocatePage(uint32_t, VkDeviceSize, VkDeviceSize, const VmaAllocationCreateInfo&, VmaSuballocationType, VmaAllocation_T**)’:
  41. ./ext/vma/vk_mem_alloc.h:12022:34: warning: unused variable ‘res’ [-Wunused-variable]
  42. 12022 | VkResult res = pBestRequestBlock->WriteMagicValueAroundAllocation(m_hAllocator, bestRequest.offset, bestRequest.size);
  43. | ^~~
  44. ./ext/vma/vk_mem_alloc.h: In member function ‘void VmaBlockVector::Free(VmaAllocation)’:
  45. ./ext/vma/vk_mem_alloc.h:12068:22: warning: unused variable ‘res’ [-Wunused-variable]
  46. 12068 | VkResult res = pBlock->ValidateMagicValueAroundAllocation(m_hAllocator, hAllocation->GetOffset(), hAllocation->GetSize());
  47. | ^~~
  48. ./ext/vma/vk_mem_alloc.h: In member function ‘VkResult VmaBlockVector::AllocateFromBlock(VmaDeviceMemoryBlock*, uint32_t, VkDeviceSize, VkDeviceSize, VmaAllocationCreateFlags, void*, VmaSuballocationType, uint32_t, VmaAllocation_T**)’:
  49. ./ext/vma/vk_mem_alloc.h:12225:22: warning: unused variable ‘res’ [-Wunused-variable]
  50. 12225 | VkResult res = pBlock->WriteMagicValueAroundAllocation(m_hAllocator, currRequest.offset, currRequest.size);
  51. | ^~~
  52. ./ext/vma/vk_mem_alloc.h: In member function ‘VkResult VmaAllocator_T::AllocateVulkanMemory(const VkMemoryAllocateInfo*, VkDeviceMemory*)’:
  53. ./ext/vma/vk_mem_alloc.h:16109:20: warning: unused variable ‘prevDeviceMemoryCount’ [-Wunused-variable]
  54. 16109 | const uint64_t prevDeviceMemoryCount = deviceMemoryCountIncrement.Increment(&m_DeviceMemoryCount);
  55. | ^~~~~~~~~~~~~~~~~~~~~
  56. ./ext/libkirk/AES.c:44:28: warning: ‘const_Zero’ defined but not used [-Wunused-const-variable=]
  57. 44 | static const unsigned char const_Zero[16] = {
  58. | ^~~~~~~~~~
  59. ./ext/libkirk/amctrl.c: In function ‘sceNpDrmGetFixedKey’:
  60. ./ext/libkirk/amctrl.c:570:2: warning: ‘strncpy’ specified bound 48 equals destination size [-Wstringop-truncation]
  61. 570 | strncpy(strbuf, npstr, 0x30);
  62. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  63. In file included from ./ext/sfmt19937/SFMT.h:69,
  64. from ./ext/sfmt19937/SFMT.c:26:
  65. ./ext/sfmt19937/SFMT-params.h:7:4: warning: #warning "SFMT_MEXP is not defined. I assume MEXP is 19937." [-Wcpp]
  66. 7 | #warning "SFMT_MEXP is not defined. I assume MEXP is 19937."
  67. | ^~~~~~~
  68. ./ext/sfmt19937/SFMT.c:46:21: warning: ‘sse2_param_mask’ defined but not used [-Wunused-const-variable=]
  69. 46 | static const w128_t sse2_param_mask = {{SFMT_MSK1, SFMT_MSK2,
  70. | ^~~~~~~~~~~~~~~
  71. ./ext/armips/Archs/ARM/ArmParser.cpp: In member function ‘bool ArmParser::parseShift(Parser&, ArmOpcodeVariables&, bool)’:
  72. ./ext/armips/Archs/ARM/ArmParser.cpp:267:60: warning: ‘number’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  73. 267 | vars.Shift.ShiftExpression = createConstExpression(number);
  74. | ^
  75. ./ext/armips/Commands/CDirectiveConditional.cpp: In member function ‘bool CDirectiveConditional::evaluate()’:
  76. ./ext/armips/Commands/CDirectiveConditional.cpp:53:19: warning: ‘value’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  77. 53 | return value != 0;
  78. | ^
  79. ./ext/armips/Commands/CDirectiveMessage.cpp: In member function ‘virtual bool CDirectiveMessage::Validate()’:
  80. ./ext/armips/Commands/CDirectiveMessage.cpp:20:9: warning: enumeration value ‘Invalid’ not handled in switch [-Wswitch]
  81. 20 | switch (errorType)
  82. | ^
  83. In file included from ./ext/armips/Core/Expression.cpp:2:
  84. ./ext/armips/Core/Expression.h: In member function ‘ExpressionValue ExpressionInternal::evaluate()’:
  85. ./ext/armips/Core/Expression.h:50:8: warning: ‘val.ExpressionValue::<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  86. 50 | struct ExpressionValue
  87. | ^~~~~~~~~~~~~~~
  88. ./ext/armips/Core/Expression.h: In member function ‘ExpressionValue Expression::evaluate()’:
  89. ./ext/armips/Core/Expression.h:50:8: warning: ‘invalid.ExpressionValue::<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  90. 50 | struct ExpressionValue
  91. | ^~~~~~~~~~~~~~~
  92. In file included from ./ext/discord-rpc/src/rpc_connection.h:4,
  93. from ./ext/discord-rpc/src/discord_rpc.cpp:6:
  94. ./ext/discord-rpc/src/serialization.h:6: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  95. 6 | #pragma warning(push)
  96. |
  97. ./ext/discord-rpc/src/serialization.h:8: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  98. 8 | #pragma warning(disable : 4061) // enum is not explicitly handled by a case label
  99. |
  100. ./ext/discord-rpc/src/serialization.h:9: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  101. 9 | #pragma warning(disable : 4365) // signed/unsigned mismatch
  102. |
  103. ./ext/discord-rpc/src/serialization.h:10: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  104. 10 | #pragma warning(disable : 4464) // relative include path contains
  105. |
  106. ./ext/discord-rpc/src/serialization.h:11: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  107. 11 | #pragma warning(disable : 4668) // is not defined as a preprocessor macro
  108. |
  109. ./ext/discord-rpc/src/serialization.h:12: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  110. 12 | #pragma warning(disable : 6313) // Incorrect operator
  111. |
  112. In file included from ./ext/discord-rpc/src/rpc_connection.h:4,
  113. from ./ext/discord-rpc/src/discord_rpc.cpp:6:
  114. ./ext/discord-rpc/src/serialization.h:20: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  115. 20 | #pragma warning(pop)
  116. |
  117. In file included from ./ext/discord-rpc/src/rpc_connection.h:4,
  118. from ./ext/discord-rpc/src/rpc_connection.cpp:1:
  119. ./ext/discord-rpc/src/serialization.h:6: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  120. 6 | #pragma warning(push)
  121. |
  122. ./ext/discord-rpc/src/serialization.h:8: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  123. 8 | #pragma warning(disable : 4061) // enum is not explicitly handled by a case label
  124. |
  125. ./ext/discord-rpc/src/serialization.h:9: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  126. 9 | #pragma warning(disable : 4365) // signed/unsigned mismatch
  127. |
  128. ./ext/discord-rpc/src/serialization.h:10: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  129. 10 | #pragma warning(disable : 4464) // relative include path contains
  130. |
  131. ./ext/discord-rpc/src/serialization.h:11: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  132. 11 | #pragma warning(disable : 4668) // is not defined as a preprocessor macro
  133. |
  134. ./ext/discord-rpc/src/serialization.h:12: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  135. 12 | #pragma warning(disable : 6313) // Incorrect operator
  136. |
  137. In file included from ./ext/discord-rpc/src/rpc_connection.h:4,
  138. from ./ext/discord-rpc/src/rpc_connection.cpp:1:
  139. ./ext/discord-rpc/src/serialization.h:20: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  140. 20 | #pragma warning(pop)
  141. |
  142. In file included from ./ext/discord-rpc/src/serialization.cpp:1:
  143. ./ext/discord-rpc/src/serialization.h:6: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  144. 6 | #pragma warning(push)
  145. |
  146. ./ext/discord-rpc/src/serialization.h:8: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  147. 8 | #pragma warning(disable : 4061) // enum is not explicitly handled by a case label
  148. |
  149. ./ext/discord-rpc/src/serialization.h:9: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  150. 9 | #pragma warning(disable : 4365) // signed/unsigned mismatch
  151. |
  152. ./ext/discord-rpc/src/serialization.h:10: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  153. 10 | #pragma warning(disable : 4464) // relative include path contains
  154. |
  155. ./ext/discord-rpc/src/serialization.h:11: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  156. 11 | #pragma warning(disable : 4668) // is not defined as a preprocessor macro
  157. |
  158. ./ext/discord-rpc/src/serialization.h:12: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  159. 12 | #pragma warning(disable : 6313) // Incorrect operator
  160. |
  161. In file included from ./ext/discord-rpc/src/serialization.cpp:1:
  162. ./ext/discord-rpc/src/serialization.h:20: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
  163. 20 | #pragma warning(pop)
  164. |
  165. ./Common/x64Analyzer.cpp: In function ‘bool X86AnalyzeMOV(const unsigned char*, LSInstructionInfo&)’:
  166. ./Common/x64Analyzer.cpp:37:6: warning: variable ‘addressSize’ set but not used [-Wunused-but-set-variable]
  167. 37 | int addressSize = 8;
  168. | ^~~~~~~~~~~
  169. ./Common/x64Analyzer.cpp:41:7: warning: variable ‘hasSIBbyte’ set but not used [-Wunused-but-set-variable]
  170. 41 | bool hasSIBbyte = false;
  171. | ^~~~~~~~~~
  172. ./Common/x64Analyzer.cpp:42:7: warning: variable ‘hasDisplacement’ set but not used [-Wunused-but-set-variable]
  173. 42 | bool hasDisplacement = false;
  174. | ^~~~~~~~~~~~~~~
  175. In file included from ./ext/armips/Parser/DirectivesParser.cpp:1:
  176. ./ext/armips/./stdafx.h: In function ‘std::unique_ptr<CAssemblerCommand> parseDirectiveConditional(Parser&, int)’:
  177. ./ext/armips/./stdafx.h:41:31: warning: ‘type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  178. 41 | return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
  179. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  180. ./ext/armips/Parser/DirectivesParser.cpp:190:16: note: ‘type’ was declared here
  181. 190 | ConditionType type;
  182. | ^~~~
  183. ./ext/armips/Parser/Parser.cpp: In member function ‘std::unique_ptr<CAssemblerCommand> Parser::parseTemplate(const wstring&, std::initializer_list<AssemblyTemplateArgument>)’:
  184. ./ext/armips/Parser/Parser.cpp:192:10: warning: unused variable ‘count’ [-Wunused-variable]
  185. 192 | size_t count = replaceAll(fullText,arg.variableName,arg.value);
  186. | ^~~~~
  187. ./Core/Util/DisArm64.cpp: In function ‘void DataProcessingImmediate(uint32_t, uint64_t, Instruction*)’:
  188. ./Core/Util/DisArm64.cpp:187:7: warning: unused variable ‘N’ [-Wunused-variable]
  189. 187 | int N = (w >> 22) & 1;
  190. | ^
  191. ./Core/Util/DisArm64.cpp: In function ‘void BranchExceptionAndSystem(uint32_t, uint64_t, Instruction*, SymbolCallback)’:
  192. ./Core/Util/DisArm64.cpp:226:7: warning: unused variable ‘offset’ [-Wunused-variable]
  193. 226 | int offset = SignExtend19(w >> 5);
  194. | ^~~~~~
  195. ./Core/Util/DisArm64.cpp: In function ‘void LoadStore(uint32_t, uint64_t, Instruction*)’:
  196. ./Core/Util/DisArm64.cpp:334:9: warning: unused variable ‘S’ [-Wunused-variable]
  197. 334 | int S = (w >> 12) & 1;
  198. | ^
  199. ./Core/Util/DisArm64.cpp: In function ‘void DataProcessingRegister(uint32_t, uint64_t, Instruction*)’:
  200. ./Core/Util/DisArm64.cpp:453:8: warning: unused variable ‘S’ [-Wunused-variable]
  201. 453 | bool S = (w >> 29) & 1;
  202. | ^
  203. ./Core/Util/DisArm64.cpp:476:7: warning: unused variable ‘imm3’ [-Wunused-variable]
  204. 476 | int imm3 = (w >> 10) & 0x7;
  205. | ^~~~
  206. ./Core/Util/DisArm64.cpp: In function ‘void FPandASIMD1(uint32_t, uint64_t, Instruction*)’:
  207. ./Core/Util/DisArm64.cpp:632:9: warning: unused variable ‘Q’ [-Wunused-variable]
  208. 632 | int Q = GetQ(w);
  209. | ^
  210. ./Core/Util/DisArm64.cpp:829:9: warning: unused variable ‘U’ [-Wunused-variable]
  211. 829 | bool U = GetU(w);
  212. | ^
  213. ./Core/Util/DisArm64.cpp:832:9: warning: unused variable ‘M’ [-Wunused-variable]
  214. 832 | bool M = (w >> 20) & 1;
  215. | ^
  216. ./Core/Util/DisArm64.cpp: In function ‘void FPandASIMD2(uint32_t, uint64_t, Instruction*)’:
  217. ./Core/Util/DisArm64.cpp:892:9: warning: unused variable ‘e’ [-Wunused-variable]
  218. 892 | int e = opcode2 >> 4;
  219. | ^
  220. ./Common/Serialize/Serializer.cpp: In member function ‘PointerWrapSection PointerWrap::Section(const char*, int, int)’:
  221. ./Common/Serialize/Serializer.cpp:46:9: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Wstringop-truncation]
  222. 46 | strncpy(marker, title, sizeof(marker));
  223. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  224. ./ext/armips/Util/FileClasses.cpp: In member function ‘wchar_t TextFile::readCharacter()’:
  225. ./ext/armips/Util/FileClasses.cpp:930:43: warning: ‘value’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  226. 930 | if (value == L'\r' && recursion == false && atEnd() == false)
  227. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
  228. ./Common/Data/Format/RIFF.cpp: In member function ‘bool RIFFReader::Descend(uint32_t)’:
  229. ./Common/Data/Format/RIFF.cpp:54:10: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
  230. 54 | if (id == intoId) {
  231. | ~~~^~~~~~~~~
  232. ./Common/File/FileUtil.cpp: In function ‘uint64_t File::GetFileSize(FILE*)’:
  233. ./Common/File/FileUtil.cpp:895:11: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long long unsigned int’} and ‘int’ [-Wsign-compare]
  234. 895 | if (size == -1)
  235. | ~~~~~^~~~~
  236. ./Common/GPU/ShaderTranslation.cpp: In function ‘bool ConvertToVulkanGLSL(std::string*, TranslatedShaderMetadata*, std::string, ShaderStage, std::string*)’:
  237. ./Common/GPU/ShaderTranslation.cpp:202:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  238. 202 | for (int i = 0; i < ARRAY_SIZE(replacements); i++) {
  239. In file included from ./Common/GPU/OpenGL/GLRenderManager.h:14,
  240. from ./Common/GPU/OpenGL/thin3d_gl.cpp:20:
  241. ./Common/GPU/OpenGL/thin3d_gl.cpp: In member function ‘virtual void Draw::OpenGLContext::BindSamplerStates(int, int, Draw::SamplerState**)’:
  242. ./Common/GPU/OpenGL/thin3d_gl.cpp:366:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const uint32_t’ {aka ‘const unsigned int’} [-Wsign-compare]
  243. 366 | _assert_(start + count <= MAX_TEXTURE_SLOTS);
  244. | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
  245. ./Common/Log.h:153:8: note: in definition of macro ‘_assert_’
  246. 153 | if (!(_a_)) {\
  247. | ^~~
  248. ./Common/GPU/OpenGL/thin3d_gl.cpp: In member function ‘virtual void Draw::OpenGLContext::BindVertexBuffers(int, int, Draw::Buffer**, const int*)’:
  249. ./Common/GPU/OpenGL/thin3d_gl.cpp:406:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  250. 406 | _assert_(start + count <= ARRAY_SIZE(curVBuffers_));
  251. ./Common/Log.h:153:8: note: in definition of macro ‘_assert_’
  252. 153 | if (!(_a_)) {\
  253. | ^~~
  254. ./Common/GPU/OpenGL/thin3d_gl.cpp: In member function ‘virtual void Draw::OpenGLContext::BindTextures(int, int, Draw::Texture**)’:
  255. ./Common/GPU/OpenGL/thin3d_gl.cpp:1120:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const uint32_t’ {aka ‘const unsigned int’} [-Wsign-compare]
  256. 1120 | _assert_(start + count <= MAX_TEXTURE_SLOTS);
  257. | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
  258. ./Common/Log.h:153:8: note: in definition of macro ‘_assert_’
  259. 153 | if (!(_a_)) {\
  260. | ^~~
  261. ./Common/GPU/OpenGL/thin3d_gl.cpp: In member function ‘void Draw::OpenGLContext::ApplySamplers()’:
  262. ./Common/GPU/OpenGL/thin3d_gl.cpp:1134:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const uint32_t’ {aka ‘const unsigned int’} [-Wsign-compare]
  263. 1134 | for (int i = 0; i < MAX_TEXTURE_SLOTS; i++) {
  264. | ~~^~~~~~~~~~~~~~~~~~~
  265. ./Common/GPU/OpenGL/thin3d_gl.cpp: In member function ‘bool Draw::OpenGLPipeline::LinkShaders()’:
  266. ./Common/GPU/OpenGL/thin3d_gl.cpp:1213:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const uint32_t’ {aka ‘const unsigned int’} [-Wsign-compare]
  267. 1213 | for (int i = 0; i < MAX_TEXTURE_SLOTS; ++i) {
  268. | ~~^~~~~~~~~~~~~~~~~~~
  269. ./Common/GPU/OpenGL/thin3d_gl.cpp:1214:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<GLRProgram::UniformLocQuery>::size_type’ {aka ‘unsigned int’} [-Wsign-compare]
  270. 1214 | if (i < queries.size()) {
  271. | ~~^~~~~~~~~~~~~~~~
  272. In file included from ./Common/GPU/OpenGL/GLRenderManager.h:14,
  273. from ./Common/GPU/OpenGL/thin3d_gl.cpp:20:
  274. ./Common/GPU/OpenGL/thin3d_gl.cpp: In member function ‘virtual void Draw::OpenGLContext::BindFramebufferAsTexture(Draw::Framebuffer*, int, Draw::FBChannel, int)’:
  275. ./Common/GPU/OpenGL/thin3d_gl.cpp:1418:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const uint32_t’ {aka ‘const unsigned int’} [-Wsign-compare]
  276. 1418 | _assert_(binding < MAX_TEXTURE_SLOTS);
  277. | ~~~~~~~~^~~~~~~~~~~~~~~~~~~
  278. ./Common/Log.h:153:8: note: in definition of macro ‘_assert_’
  279. 153 | if (!(_a_)) {\
  280. | ^~~
  281. ./Common/GPU/OpenGL/GLRenderManager.cpp: In member function ‘void GLPushBuffer::Destroy(bool)’:
  282. ./Common/GPU/OpenGL/GLRenderManager.cpp:765:11: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  283. 765 | if (buf_ == -1)
  284. | ~~~~~^~~~~
  285. ./Common/GPU/OpenGL/GLQueueRunner.cpp: In member function ‘void GLQueueRunner::PerformRenderPass(const GLRStep&, bool, bool)’:
  286. ./Common/GPU/OpenGL/GLQueueRunner.cpp:802:22: warning: comparison of integer expressions of different signedness: ‘const GLenum’ {aka ‘const unsigned int’} and ‘int’ [-Wsign-compare]
  287. 802 | if (c.depth.func != depthFunc) {
  288. | ~~~~~~~~~~~~~^~~~~~~~~~~~
  289. ./Common/GPU/OpenGL/GLQueueRunner.cpp:857:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const GLenum’ {aka ‘const unsigned int’} [-Wsign-compare]
  290. 857 | if (logicOp != c.logic.logicOp) {
  291. | ~~~~~~~~^~~~~~~~~~~~~~~~~~
  292. ./Common/GPU/Vulkan/VulkanDebug.cpp: In function ‘VkBool32 VulkanDebugUtilsCallback(VkDebugUtilsMessageSeverityFlagBitsEXT, VkDebugUtilsMessageTypeFlagsEXT, const VkDebugUtilsMessengerCallbackDataEXT*, void*)’:
  293. ./Common/GPU/Vulkan/VulkanDebug.cpp:30:26: warning: unused variable ‘options’ [-Wunused-variable]
  294. 30 | const VulkanLogOptions *options = (const VulkanLogOptions *)pUserData;
  295. | ^~~~~~~
  296. ./Common/GPU/Vulkan/VulkanContext.cpp: In member function ‘VkResult VulkanContext::CreateDevice()’:
  297. ./Common/GPU/Vulkan/VulkanContext.cpp:737:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  298. 737 | for (int i = 0; i < ARRAY_SIZE(frame_); i++) {
  299. ./Common/GPU/Vulkan/VulkanContext.cpp:641:7: warning: variable ‘found’ set but not used [-Wunused-but-set-variable]
  300. 641 | bool found = false;
  301. | ^~~~~
  302. ./Common/GPU/Vulkan/VulkanContext.cpp: In member function ‘void VulkanContext::PerformPendingDeletes()’:
  303. ./Common/GPU/Vulkan/VulkanContext.cpp:1170:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  304. 1170 | for (int i = 0; i < ARRAY_SIZE(frame_); i++) {
  305. ./Common/GPU/Vulkan/VulkanContext.cpp: In member function ‘void VulkanContext::DestroyDevice()’:
  306. ./Common/GPU/Vulkan/VulkanContext.cpp:1187:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  307. 1187 | for (int i = 0; i < ARRAY_SIZE(frame_); i++) {
  308. ./Common/GPU/Vulkan/VulkanLoader.cpp: In function ‘void* VulkanLoadLibrary(const char*)’:
  309. ./Common/GPU/Vulkan/VulkanLoader.cpp:278:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  310. 278 | for (int i = 0; i < ARRAY_SIZE(so_names); i++) {
  311. In file included from ./Common/GPU/Vulkan/VulkanMemory.cpp:25:
  312. ./Common/GPU/Vulkan/VulkanMemory.h: In constructor ‘VulkanPushBuffer::VulkanPushBuffer(VulkanContext*, const char*, size_t, VkBufferUsageFlags, PushBufferType)’:
  313. ./Common/GPU/Vulkan/VulkanMemory.h:140:14: warning: ‘VulkanPushBuffer::name_’ will be initialized after [-Wreorder]
  314. 140 | const char *name_;
  315. | ^~~~~
  316. ./Common/GPU/Vulkan/VulkanMemory.h:137:9: warning: ‘size_t VulkanPushBuffer::size_’ [-Wreorder]
  317. 137 | size_t size_ = 0;
  318. | ^~~~~
  319. ./Common/GPU/Vulkan/VulkanMemory.cpp:29:1: warning: when initialized here [-Wreorder]
  320. 29 | VulkanPushBuffer::VulkanPushBuffer(VulkanContext *vulkan, const char *name, size_t size, VkBufferUsageFlags usage, PushBufferType type)
  321. | ^~~~~~~~~~~~~~~~
  322. In file included from ./Common/GPU/Vulkan/VulkanMemory.cpp:25:
  323. ./Common/GPU/Vulkan/VulkanMemory.h:139:21: warning: ‘VulkanPushBuffer::usage_’ will be initialized after [-Wreorder]
  324. 139 | VkBufferUsageFlags usage_;
  325. | ^~~~~~
  326. ./Common/GPU/Vulkan/VulkanMemory.h:132:17: warning: ‘PushBufferType VulkanPushBuffer::type_’ [-Wreorder]
  327. 132 | PushBufferType type_;
  328. | ^~~~~
  329. ./Common/GPU/Vulkan/VulkanMemory.cpp:29:1: warning: when initialized here [-Wreorder]
  330. 29 | VulkanPushBuffer::VulkanPushBuffer(VulkanContext *vulkan, const char *name, size_t size, VkBufferUsageFlags usage, PushBufferType type)
  331. | ^~~~~~~~~~~~~~~~
  332. ./Common/GPU/Vulkan/VulkanMemory.cpp: In member function ‘bool VulkanPushBuffer::AddBuffer()’:
  333. ./Common/GPU/Vulkan/VulkanMemory.cpp:42:11: warning: unused variable ‘device’ [-Wunused-variable]
  334. 42 | VkDevice device = vulkan_->GetDevice();
  335. | ^~~~~~
  336. In file included from ./Common/GPU/Vulkan/VulkanContext.h:8,
  337. from ./Common/GPU/Vulkan/VulkanRenderManager.h:16,
  338. from ./Common/GPU/Vulkan/thin3d_vulkan.cpp:27:
  339. ./Common/GPU/Vulkan/thin3d_vulkan.cpp: In member function ‘virtual void Draw::VKContext::BindVertexBuffers(int, int, Draw::Buffer**, const int*)’:
  340. ./Common/GPU/Vulkan/thin3d_vulkan.cpp:416:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  341. 416 | _assert_(start + count <= ARRAY_SIZE(curVBuffers_));
  342. ./Common/Log.h:153:8: note: in definition of macro ‘_assert_’
  343. 153 | if (!(_a_)) {\
  344. | ^~~
  345. ./Common/GPU/Vulkan/thin3d_vulkan.cpp: In constructor ‘Draw::VKContext::VKContext(VulkanContext*, bool)’:
  346. ./Common/GPU/Vulkan/thin3d_vulkan.cpp:776:11: warning: unused variable ‘depthStencilFormat’ [-Wunused-variable]
  347. 776 | VkFormat depthStencilFormat = vulkan->GetDeviceInfo().preferredDepthStencilFormat;
  348. | ^~~~~~~~~~~~~~~~~~
  349. ./Common/GPU/Vulkan/thin3d_vulkan.cpp:848:26: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
  350. 848 | VkCommandPoolCreateInfo p{ VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO };
  351. | ^
  352. ./Common/GPU/Vulkan/VulkanRenderManager.cpp: In function ‘void CreateImage(VulkanContext*, VkCommandBuffer, VKRImage&, int, int, VkFormat, VkImageLayout, bool, const char*)’:
  353. ./Common/GPU/Vulkan/VulkanRenderManager.cpp:151:11: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
  354. 151 | VkResult res = vmaCreateImage(vulkan->Allocator(), &ici, &allocCreateInfo, &img.image, &img.alloc, &allocInfo);
  355. | ^~~
  356. ./Common/GPU/Vulkan/VulkanRenderManager.cpp: In constructor ‘VulkanRenderManager::VulkanRenderManager(VulkanContext*)’:
  357. ./Common/GPU/Vulkan/VulkanRenderManager.cpp:219:12: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
  358. 219 | VkResult res = vkCreateCommandPool(vulkan_->GetDevice(), &cmd_pool_info, nullptr, &frameData_[i].cmdPoolInit);
  359. | ^~~
  360. ./Common/GPU/Vulkan/VulkanRenderManager.cpp:209:11: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
  361. 209 | VkResult res = vkCreateSemaphore(vulkan_->GetDevice(), &semaphoreCreateInfo, nullptr, &acquireSemaphore_);
  362. | ^~~
  363. ./Common/GPU/Vulkan/VulkanRenderManager.cpp: In function ‘void CleanupRenderCommands(std::vector<VkRenderData>*)’:
  364. ./Common/GPU/Vulkan/VulkanRenderManager.cpp:980:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  365. 980 | if (lastOfCmd != -1) {
  366. | ~~~~~~~~~~^~~~~
  367. ./Common/GPU/Vulkan/VulkanRenderManager.cpp:1008:17: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  368. 1008 | if (lastOfCmd != -1) {
  369. | ~~~~~~~~~~^~~~~
  370. ./Common/GPU/Vulkan/VulkanRenderManager.cpp: In member function ‘void VulkanRenderManager::CopyFramebuffer(VKRFramebuffer*, VkRect2D, VKRFramebuffer*, VkOffset2D, VkImageAspectFlags, const char*)’:
  371. ./Common/GPU/Vulkan/VulkanRenderManager.cpp:1100:96: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  372. 1100 | bool fillsDst = dst && srcRect.offset.x == 0 && srcRect.offset.y == 0 && srcRect.extent.width == dst->width && srcRect.extent.height == dst->height;
  373. | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
  374. ./Common/GPU/Vulkan/VulkanRenderManager.cpp:1100:135: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  375. 1100 | bool fillsDst = dst && srcRect.offset.x == 0 && srcRect.offset.y == 0 && srcRect.extent.width == dst->width && srcRect.extent.height == dst->height;
  376. | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
  377. ./Common/GPU/Vulkan/VulkanRenderManager.cpp: In member function ‘void VulkanRenderManager::BlitFramebuffer(VKRFramebuffer*, VkRect2D, VKRFramebuffer*, VkRect2D, VkImageAspectFlags, VkFilter, const char*)’:
  378. ./Common/GPU/Vulkan/VulkanRenderManager.cpp:1146:96: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  379. 1146 | bool fillsDst = dst && dstRect.offset.x == 0 && dstRect.offset.y == 0 && dstRect.extent.width == dst->width && dstRect.extent.height == dst->height;
  380. | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
  381. ./Common/GPU/Vulkan/VulkanRenderManager.cpp:1146:135: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  382. 1146 | bool fillsDst = dst && dstRect.offset.x == 0 && dstRect.offset.y == 0 && dstRect.extent.width == dst->width && dstRect.extent.height == dst->height;
  383. | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
  384. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp: In member function ‘void VulkanQueueRunner::PerformRenderPass(const VKRStep&, VkCommandBuffer)’:
  385. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1113:7: warning: unused variable ‘n’ [-Wunused-variable]
  386. 1113 | int n = 0;
  387. | ^
  388. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1114:7: warning: unused variable ‘stage’ [-Wunused-variable]
  389. 1114 | int stage = 0;
  390. | ^~~~~
  391. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1116:24: warning: unused variable ‘barriers’ [-Wunused-variable]
  392. 1116 | VkImageMemoryBarrier barriers[2]{};
  393. | ^~~~~~~~
  394. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1165:13: warning: unused variable ‘lastPipeline’ [-Wunused-variable]
  395. 1165 | VkPipeline lastPipeline = VK_NULL_HANDLE;
  396. | ^~~~~~~~~~~~
  397. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp: In member function ‘void VulkanQueueRunner::PerformBindFramebufferAsRenderTarget(const VKRStep&, VkCommandBuffer)’:
  398. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1359:6: warning: variable ‘w’ set but not used [-Wunused-but-set-variable]
  399. 1359 | int w;
  400. | ^
  401. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1360:6: warning: variable ‘h’ set but not used [-Wunused-but-set-variable]
  402. 1360 | int h;
  403. | ^
  404. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp: In member function ‘void VulkanQueueRunner::PerformBlit(const VKRStep&, VkCommandBuffer)’:
  405. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1500:23: warning: unused variable ‘srcBarriers’ [-Wunused-variable]
  406. 1500 | VkImageMemoryBarrier srcBarriers[2]{};
  407. | ^~~~~~~~~~~
  408. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1501:23: warning: unused variable ‘dstBarriers’ [-Wunused-variable]
  409. 1501 | VkImageMemoryBarrier dstBarriers[2]{};
  410. | ^~~~~~~~~~~
  411. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1526:23: warning: unused variable ‘srcStage’ [-Wunused-variable]
  412. 1526 | VkPipelineStageFlags srcStage = 0;
  413. | ^~~~~~~~
  414. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1527:23: warning: unused variable ‘dstStage’ [-Wunused-variable]
  415. 1527 | VkPipelineStageFlags dstStage = 0;
  416. | ^~~~~~~~
  417. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1529:6: warning: unused variable ‘srcCount’ [-Wunused-variable]
  418. 1529 | int srcCount = 0;
  419. | ^~~~~~~~
  420. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1530:6: warning: unused variable ‘dstCount’ [-Wunused-variable]
  421. 1530 | int dstCount = 0;
  422. | ^~~~~~~~
  423. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp: In static member function ‘static void VulkanQueueRunner::SetupTransitionToTransferDst(VKRImage&, VkImageAspectFlags, VulkanBarrier*)’:
  424. ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1626:21: warning: variable ‘imageAspect’ set but not used [-Wunused-but-set-variable]
  425. 1626 | VkImageAspectFlags imageAspect = aspect;
  426. | ^~~~~~~~~~~
  427. ./Common/Profiler/Profiler.cpp: In function ‘void internal_profiler_end_frame()’:
  428. ./Common/Profiler/Profiler.cpp:195:92: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct CategoryFrame’; use assignment or value-initialization instead [-Wclass-memaccess]
  429. 195 | memset(&history[MAX_THREADS * profiler.historyPos], 0, sizeof(CategoryFrame) * MAX_THREADS);
  430. | ^
  431. ./Common/Profiler/Profiler.cpp:35:8: note: ‘struct CategoryFrame’ declared here
  432. 35 | struct CategoryFrame {
  433. | ^~~~~~~~~~~~~
  434. In file included from ./Common/Render/TextureAtlas.cpp:6:
  435. ./Common/Render/TextureAtlas.cpp: In member function ‘bool Atlas::Load(const uint8_t*, size_t)’:
  436. ./Common/Render/TextureAtlas.h:6:39: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
  437. 6 | #define ATLAS_MAGIC ('A' + ('T' << 8) + ('L' << 16) | ('A' << 24))
  438. | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
  439. ./Common/Render/TextureAtlas.cpp:60:22: note: in expansion of macro ‘ATLAS_MAGIC’
  440. 60 | if (header.magic != ATLAS_MAGIC) {
  441. | ^~~~~~~~~~~
  442. ./Common/Thread/ParallelLoop.cpp: In constructor ‘LoopRangeTask::LoopRangeTask(WaitableCounter*, const std::function<void(int, int)>&, int, int)’:
  443. ./Common/Thread/ParallelLoop.cpp:22:19: warning: ‘LoopRangeTask::counter_’ will be initialized after [-Wreorder]
  444. 22 | WaitableCounter *counter_;
  445. | ^~~~~~~~
  446. ./Common/Thread/ParallelLoop.cpp:21:32: warning: ‘std::function<void(int, int)> LoopRangeTask::loop_’ [-Wreorder]
  447. 21 | std::function<void(int, int)> loop_;
  448. | ^~~~~
  449. ./Common/Thread/ParallelLoop.cpp:9:2: warning: when initialized here [-Wreorder]
  450. 9 | LoopRangeTask(WaitableCounter *counter, const std::function<void(int, int)> &loop, int lower, int upper)
  451. | ^~~~~~~~~~~~~
  452. ./Common/Thread/ThreadManager.cpp: In member function ‘void ThreadManager::Teardown()’:
  453. ./Common/Thread/ThreadManager.cpp:90:14: warning: unused variable ‘task’ [-Wunused-variable]
  454. 90 | for (Task *task : threadCtx->private_queue) {
  455. | ^~~~
  456. In file included from ./Common/UI/UIScreen.cpp:9:
  457. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  458. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  459. 230 | float *value_;
  460. | ^~~~~~
  461. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  462. 229 | float originalValue_;
  463. | ^~~~~~~~~~~~~~
  464. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  465. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  466. | ^~~~~~~~~~~~~~~~~~~~~~
  467. ./Common/UI/ViewGroup.cpp: In member function ‘std::string UI::ViewGroup::DescribeListUnordered(const char*) const’:
  468. ./Common/UI/ViewGroup.cpp:192:7: warning: unused variable ‘needNewline’ [-Wunused-variable]
  469. 192 | bool needNewline = false;
  470. | ^~~~~~~~~~~
  471. ./Common/UI/ViewGroup.cpp: In member function ‘std::string UI::ViewGroup::DescribeListOrdered(const char*) const’:
  472. ./Common/UI/ViewGroup.cpp:213:7: warning: unused variable ‘needNewline’ [-Wunused-variable]
  473. 213 | bool needNewline = false;
  474. | ^~~~~~~~~~~
  475. ./Common/UI/ViewGroup.cpp: In function ‘float UI::GetTargetScore(const Point&, int, UI::View*, UI::View*, UI::FocusDirection)’:
  476. ./Common/UI/ViewGroup.cpp:304:7: warning: variable ‘vertical’ set but not used [-Wunused-but-set-variable]
  477. 304 | bool vertical = false;
  478. | ^~~~~~~~
  479. ./Common/UI/ViewGroup.cpp: In member function ‘virtual bool UI::ScrollView::SubviewFocused(UI::View*)’:
  480. ./Common/UI/ViewGroup.cpp:936:20: warning: ‘viewEnd’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  481. 936 | ScrollTo(viewEnd - visibleSize + overscroll);
  482. | ~~~~~~~~^~~~~~~~~~~~~
  483. ./Common/UI/ViewGroup.cpp:937:9: warning: ‘viewStart’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  484. 937 | } else if (viewStart < pos) {
  485. | ^~
  486. ./Common/MemoryUtil.cpp:45:12: warning: ‘hint_location’ defined but not used [-Wunused-variable]
  487. 45 | static int hint_location;
  488. | ^~~~~~~~~~~~~
  489. ./Common/TimeUtil.cpp:24:15: warning: ‘curtime’ defined but not used [-Wunused-variable]
  490. 24 | static double curtime = 0;
  491. | ^~~~~~~
  492. ./SDL/SDLMain.cpp: In function ‘int main(int, char**)’:
  493. ./SDL/SDLMain.cpp:847:20: warning: unused variable ‘touchEvent’ [-Wunused-variable]
  494. 847 | SDL_Event event, touchEvent;
  495. | ^~~~~~~~~~
  496. ./SDL/SDLMain.cpp:1139:18: warning: unused variable ‘keys’ [-Wunused-variable]
  497. 1139 | const uint8_t *keys = SDL_GetKeyboardState(NULL);
  498. | ^~~~
  499. ./Core/MIPS/IR/IRCompVFPU.cpp:91:14: warning: ‘bool MIPSComp::IsOverlapSafeAllowS(int, u8*, int, u8*, int, u8*)’ defined but not used [-Wunused-function]
  500. 91 | static bool IsOverlapSafeAllowS(int dn, u8 dregs[], int sn, u8 sregs[], int tn = 0, u8 tregs[] = nullptr) {
  501. | ^~~~~~~~~~~~~~~~~~~
  502. ./Core/Util/DisArm64.cpp: In function ‘void DataProcessingImmediate(uint32_t, uint64_t, Instruction*)’:
  503. ./Core/Util/DisArm64.cpp:187:7: warning: unused variable ‘N’ [-Wunused-variable]
  504. 187 | int N = (w >> 22) & 1;
  505. | ^
  506. ./Core/Util/DisArm64.cpp: In function ‘void BranchExceptionAndSystem(uint32_t, uint64_t, Instruction*, SymbolCallback)’:
  507. ./Core/Util/DisArm64.cpp:226:7: warning: unused variable ‘offset’ [-Wunused-variable]
  508. 226 | int offset = SignExtend19(w >> 5);
  509. | ^~~~~~
  510. ./Core/Util/DisArm64.cpp: In function ‘void LoadStore(uint32_t, uint64_t, Instruction*)’:
  511. ./Core/Util/DisArm64.cpp:334:9: warning: unused variable ‘S’ [-Wunused-variable]
  512. 334 | int S = (w >> 12) & 1;
  513. | ^
  514. ./Core/Util/DisArm64.cpp: In function ‘void DataProcessingRegister(uint32_t, uint64_t, Instruction*)’:
  515. ./Core/Util/DisArm64.cpp:453:8: warning: unused variable ‘S’ [-Wunused-variable]
  516. 453 | bool S = (w >> 29) & 1;
  517. | ^
  518. ./Core/Util/DisArm64.cpp:476:7: warning: unused variable ‘imm3’ [-Wunused-variable]
  519. 476 | int imm3 = (w >> 10) & 0x7;
  520. | ^~~~
  521. ./Core/Util/DisArm64.cpp: In function ‘void FPandASIMD1(uint32_t, uint64_t, Instruction*)’:
  522. ./Core/Util/DisArm64.cpp:632:9: warning: unused variable ‘Q’ [-Wunused-variable]
  523. 632 | int Q = GetQ(w);
  524. | ^
  525. ./Core/Util/DisArm64.cpp:829:9: warning: unused variable ‘U’ [-Wunused-variable]
  526. 829 | bool U = GetU(w);
  527. | ^
  528. ./Core/Util/DisArm64.cpp:832:9: warning: unused variable ‘M’ [-Wunused-variable]
  529. 832 | bool M = (w >> 20) & 1;
  530. | ^
  531. ./Core/Util/DisArm64.cpp: In function ‘void FPandASIMD2(uint32_t, uint64_t, Instruction*)’:
  532. ./Core/Util/DisArm64.cpp:892:9: warning: unused variable ‘e’ [-Wunused-variable]
  533. 892 | int e = opcode2 >> 4;
  534. | ^
  535. ./Core/MIPS/x86/CompVFPU.cpp: In member function ‘virtual void MIPSComp::Jit::Comp_ColorConv(MIPSOpcode)’:
  536. ./Core/MIPS/x86/CompVFPU.cpp:3600:6: warning: unused variable ‘vd’ [-Wunused-variable]
  537. 3600 | int vd = _VD;
  538. | ^~
  539. ./Core/MIPS/x86/CompVFPU.cpp:3601:6: warning: unused variable ‘vs’ [-Wunused-variable]
  540. 3601 | int vs = _VS;
  541. | ^~
  542. ./Core/MIPS/x86/RegCache.cpp: In member function ‘void GPRRegCache::Start(MIPSState*, MIPSComp::JitState*, MIPSComp::JitOptions*, MIPSAnalyst::AnalysisResults&)’:
  543. ./Core/MIPS/x86/RegCache.cpp:69:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const u32’ {aka ‘const unsigned int’} [-Wsign-compare]
  544. 69 | for (int i = 0; i < NUM_X_REGS; i++) {
  545. | ~~^~~~~~~~~~~~
  546. ./Core/MIPS/x86/RegCache.cpp:74:30: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct MIPSCachedReg’; use assignment or value-initialization instead [-Wclass-memaccess]
  547. 74 | memset(regs, 0, sizeof(regs));
  548. | ^
  549. In file included from ./Core/MIPS/x86/Jit.h:32,
  550. from ./Core/MIPS/x86/RegCache.cpp:28:
  551. ./Core/MIPS/x86/RegCache.h:45:8: note: ‘struct MIPSCachedReg’ declared here
  552. 45 | struct MIPSCachedReg {
  553. | ^~~~~~~~~~~~~
  554. ./Core/MIPS/x86/RegCache.cpp: In member function ‘void GPRRegCache::UnlockAllX()’:
  555. ./Core/MIPS/x86/RegCache.cpp:131:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const u32’ {aka ‘const unsigned int’} [-Wsign-compare]
  556. 131 | for (int i = 0; i < NUM_X_REGS; i++)
  557. | ~~^~~~~~~~~~~~
  558. ./Core/MIPS/x86/RegCache.cpp: In member function ‘void GPRRegCache::Flush()’:
  559. ./Core/MIPS/x86/RegCache.cpp:406:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const u32’ {aka ‘const unsigned int’} [-Wsign-compare]
  560. 406 | for (int i = 0; i < NUM_X_REGS; i++) {
  561. | ~~^~~~~~~~~~~~
  562. ./Core/MIPS/x86/RegCacheFPU.cpp: In member function ‘void FPURegCache::SetupInitialRegs()’:
  563. ./Core/MIPS/x86/RegCacheFPU.cpp:59:44: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct MIPSCachedFPReg’; use assignment or value-initialization instead [-Wclass-memaccess]
  564. 59 | memset(regsInitial, 0, sizeof(regsInitial));
  565. | ^
  566. In file included from ./Core/MIPS/x86/Jit.h:33,
  567. from ./Core/MIPS/x86/RegCacheFPU.cpp:27:
  568. ./Core/MIPS/x86/RegCacheFPU.h:67:8: note: ‘struct MIPSCachedFPReg’ declared here
  569. 67 | struct MIPSCachedFPReg {
  570. | ^~~~~~~~~~~~~~~
  571. ./Core/MIPS/x86/RegCacheFPU.cpp: In member function ‘bool FPURegCache::CanMapVS(const u8*, VectorSize)’:
  572. ./Core/MIPS/x86/RegCacheFPU.cpp:218:26: warning: unused variable ‘v0’ [-Wunused-variable]
  573. 218 | const MIPSCachedFPReg &v0 = vregs[v[0]];
  574. | ^~
  575. ./Core/AVIDump.cpp:60:13: warning: ‘s_start_dumping’ defined but not used [-Wunused-variable]
  576. 60 | static bool s_start_dumping = false;
  577. | ^~~~~~~~~~~~~~~
  578. ./Core/AVIDump.cpp:57:12: warning: ‘s_bytes_per_pixel’ defined but not used [-Wunused-variable]
  579. 57 | static int s_bytes_per_pixel;
  580. | ^~~~~~~~~~~~~~~~~
  581. In file included from ./Core/Core.cpp:39:
  582. ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
  583. 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
  584. | ^~~~~~~~~~~~~~
  585. ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  586. 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
  587. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  588. ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
  589. 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
  590. | ^~~~~~~~~~~~~~~~~~~~
  591. ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  592. 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
  593. | ^~~~~~~~~~~~~~~~~~~~
  594. ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
  595. 35 | static const char *STATE_EXTENSION = "ppst";
  596. | ^~~~~~~~~~~~~~~
  597. ./Core/Debugger/DisassemblyManager.cpp: In member function ‘void DisassemblyManager::getLine(u32, bool, DisassemblyLineInfo&, DebugInterface*)’:
  598. ./Core/Debugger/DisassemblyManager.cpp:308:41: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct MIPSAnalyst::MipsOpcodeInfo’; use assignment or value-initialization instead [-Wclass-memaccess]
  599. 308 | memset(&dest.info, 0, sizeof(dest.info));
  600. | ^
  601. In file included from ./Core/Debugger/DisassemblyManager.h:24,
  602. from ./Core/Debugger/DisassemblyManager.cpp:33:
  603. ./Core/MIPS/MIPSAnalyst.h:142:17: note: ‘struct MIPSAnalyst::MipsOpcodeInfo’ declared here
  604. 142 | typedef struct {
  605. | ^
  606. ./Core/Debugger/WebSocket/DisasmSubscriber.cpp: In member function ‘void WebSocketDisasmState::WriteDisasmLine(json::JsonWriter&, const DisassemblyLineInfo&)’:
  607. ./Core/Debugger/WebSocket/DisasmSubscriber.cpp:123:17: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  608. 123 | if (dataStart == -1)
  609. | ~~~~~~~~~~^~~~~
  610. ./Core/Debugger/WebSocket/DisasmSubscriber.cpp: In member function ‘void WebSocketDisasmState::Disasm(DebuggerRequest&)’:
  611. ./Core/Debugger/WebSocket/DisasmSubscriber.cpp:321:13: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  612. 321 | if (start == -1)
  613. | ~~~~~~^~~~~
  614. ./Core/Debugger/WebSocket/DisasmSubscriber.cpp:331:13: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  615. 331 | if (start == -1)
  616. | ~~~~~~^~~~~
  617. ./Core/Debugger/WebSocket/CPUCoreSubscriber.cpp: In function ‘void WebSocketCPUGetReg(DebuggerRequest&)’:
  618. ./Core/Debugger/WebSocket/CPUCoreSubscriber.cpp:299:16: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  619. 299 | json.writeUint("uintValue", val);
  620. | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
  621. ./Core/Debugger/WebSocket/HLESubscriber.cpp: In function ‘bool ThreadInfoForStatus(DebuggerRequest&, DebugThreadInfo*)’:
  622. ./Core/Debugger/WebSocket/HLESubscriber.cpp:115:12: warning: comparison of integer expressions of different signedness: ‘SceUID’ {aka ‘int’} and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
  623. 115 | if (t.id == threadID) {
  624. | ~~~~~^~~~~~~~~~~
  625. ./Core/Debugger/WebSocket/HLESubscriber.cpp: In function ‘void WebSocketHLEFuncAdd(DebuggerRequest&)’:
  626. ./Core/Debugger/WebSocket/HLESubscriber.cpp:259:22: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  627. 259 | u32 endBegin = size == -1 ? prevBegin : g_symbolMap->GetFunctionStart(addr + size - 1);
  628. | ~~~~~^~~~~
  629. ./Core/Debugger/WebSocket/HLESubscriber.cpp:264:23: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  630. 264 | } else if (prevBegin != -1) {
  631. | ~~~~~~~~~~^~~~~
  632. ./Core/Debugger/WebSocket/HLESubscriber.cpp:270:12: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  633. 270 | if (size == -1)
  634. | ~~~~~^~~~~
  635. ./Core/Debugger/WebSocket/HLESubscriber.cpp:279:12: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  636. 279 | if (size == -1)
  637. | ~~~~~^~~~~
  638. ./Core/Debugger/WebSocket/HLESubscriber.cpp: In function ‘void WebSocketHLEFuncRemove(DebuggerRequest&)’:
  639. ./Core/Debugger/WebSocket/HLESubscriber.cpp:327:16: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  640. 327 | if (funcBegin == -1)
  641. | ~~~~~~~~~~^~~~~
  642. ./Core/Debugger/WebSocket/HLESubscriber.cpp:333:16: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  643. 333 | if (prevBegin != -1) {
  644. | ~~~~~~~~~~^~~~~
  645. ./Core/Debugger/WebSocket/HLESubscriber.cpp: In function ‘void WebSocketHLEFuncRename(DebuggerRequest&)’:
  646. ./Core/Debugger/WebSocket/HLESubscriber.cpp:386:16: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  647. 386 | if (funcBegin == -1)
  648. | ~~~~~~~~~~^~~~~
  649. ./Core/Debugger/WebSocket/HLESubscriber.cpp: In function ‘void WebSocketHLEBacktrace(DebuggerRequest&)’:
  650. ./Core/Debugger/WebSocket/HLESubscriber.cpp:468:17: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  651. 468 | if ((threadID == -1 && th.isCurrent) || th.id == threadID) {
  652. | ~~~~~~~~~^~~~~
  653. ./Core/Debugger/WebSocket/HLESubscriber.cpp:468:49: warning: comparison of integer expressions of different signedness: ‘const SceUID’ {aka ‘const int’} and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
  654. 468 | if ((threadID == -1 && th.isCurrent) || th.id == threadID) {
  655. | ~~~~~~^~~~~~~~~~~
  656. ./Core/Debugger/WebSocket/InputSubscriber.cpp: In member function ‘virtual void WebSocketInputState::Broadcast(net::WebSocketServer*)’:
  657. ./Core/Debugger/WebSocket/InputSubscriber.cpp:207:22: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  658. 207 | if (press.duration == -1) {
  659. | ~~~~~~~~~~~~~~~^~~~~
  660. ./Core/Debugger/WebSocket/SteppingSubscriber.cpp: In member function ‘void WebSocketSteppingState::Out(DebuggerRequest&)’:
  661. ./Core/Debugger/WebSocket/SteppingSubscriber.cpp:203:17: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  662. 203 | if ((threadID == -1 && th.isCurrent) || th.id == threadID) {
  663. | ~~~~~~~~~^~~~~
  664. ./Core/Debugger/WebSocket/SteppingSubscriber.cpp:203:49: warning: comparison of integer expressions of different signedness: ‘const SceUID’ {aka ‘const int’} and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
  665. 203 | if ((threadID == -1 && th.isCurrent) || th.id == threadID) {
  666. | ~~~~~~^~~~~~~~~~~
  667. ./Core/Dialog/PSPSaveDialog.cpp: In member function ‘void PSPSaveDialog::ExecuteNotVisibleIOAction()’:
  668. ./Core/Dialog/PSPSaveDialog.cpp:1140:14: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  669. 1140 | if (result == SCE_UTILITY_SAVEDATA_ERROR_SAVE_MS_NOSPACE) {
  670. ./Core/Dialog/PSPSaveDialog.cpp:1152:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  671. 1152 | if(result == SCE_UTILITY_SAVEDATA_ERROR_LOAD_NO_DATA)
  672. In file included from ./Core/Dialog/PSPSaveDialog.cpp:44:
  673. ./Core/SaveState.h: At global scope:
  674. ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
  675. 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
  676. | ^~~~~~~~~~~~~~
  677. ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  678. 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
  679. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  680. ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
  681. 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
  682. | ^~~~~~~~~~~~~~~~~~~~
  683. ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  684. 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
  685. | ^~~~~~~~~~~~~~~~~~~~
  686. ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
  687. 35 | static const char *STATE_EXTENSION = "ppst";
  688. | ^~~~~~~~~~~~~~~
  689. ./Core/ELF/ElfReader.cpp: In member function ‘bool ElfReader::LoadSymbols()’:
  690. ./Core/ELF/ElfReader.cpp:709:8: warning: unused variable ‘bind’ [-Wunused-variable]
  691. 709 | int bind = symtab[sym].st_info >> 4;
  692. | ^~~~
  693. In file included from ./Core/ELF/ElfReader.cpp:28:
  694. ./Core/Debugger/MemBlockInfo.h: In member function ‘void ElfReader::LoadRelocations2(int)’:
  695. ./Core/Debugger/MemBlockInfo.h:65:15: warning: ‘addr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  696. 65 | NotifyMemInfo(flags, start, size, str, strlen(str));
  697. | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  698. ./Core/ELF/ElfReader.cpp:232:10: note: ‘addr’ was declared here
  699. 232 | u32 op, addr;
  700. | ^~~~
  701. ./Core/Dialog/SavedataParam.cpp: In member function ‘bool SavedataParam::LoadSFO(SceUtilitySavedataParam*, const string&)’:
  702. ./Core/Dialog/SavedataParam.cpp:800:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 128 equals destination size [-Wstringop-truncation]
  703. 800 | strncpy(param->sfoParam.title,sfoFile.GetValueString("TITLE").c_str(),128);
  704. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  705. ./Core/Dialog/SavedataParam.cpp:801:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 128 equals destination size [-Wstringop-truncation]
  706. 801 | strncpy(param->sfoParam.savedataTitle,sfoFile.GetValueString("SAVEDATA_TITLE").c_str(),128);
  707. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  708. ./Core/Dialog/SavedataParam.cpp:802:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 1024 equals destination size [-Wstringop-truncation]
  709. 802 | strncpy(param->sfoParam.detail,sfoFile.GetValueString("SAVEDATA_DETAIL").c_str(),1024);
  710. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  711. ./Core/Dialog/SavedataParam.cpp: In member function ‘int SavedataParam::Save(SceUtilitySavedataParam*, const string&, bool)’:
  712. ./Core/Dialog/SavedataParam.cpp:543:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 20 equals destination size [-Wstringop-truncation]
  713. 543 | strncpy(param->saveName, saveDirName.c_str(), 20);
  714. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  715. ./Core/Dialog/SavedataParam.cpp: In member function ‘int SavedataParam::LoadSaveData(SceUtilitySavedataParam*, const string&, const string&, bool)’:
  716. ./Core/Dialog/SavedataParam.cpp:661:9: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 20 equals destination size [-Wstringop-truncation]
  717. 661 | strncpy(param->saveName, saveDirName.c_str(), 20);
  718. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  719. ./Core/Dialog/SavedataParam.cpp: In member function ‘int SavedataParam::GetSizes(SceUtilitySavedataParam*)’:
  720. ./Core/Dialog/SavedataParam.cpp:1085:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 8 equals destination size [-Wstringop-truncation]
  721. 1085 | strncpy(param->msFree->freeSpaceStr, spaceTxt.c_str(), sizeof(param->msFree->freeSpaceStr));
  722. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  723. ./Core/Dialog/SavedataParam.cpp:1109:11: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 8 equals destination size [-Wstringop-truncation]
  724. 1109 | strncpy(param->msData->info.usedSpaceStr, spaceTxt.c_str(), sizeof(param->msData->info.usedSpaceStr));
  725. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  726. ./Core/Dialog/SavedataParam.cpp:1113:11: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 8 equals destination size [-Wstringop-truncation]
  727. 1113 | strncpy(param->msData->info.usedSpace32Str, spaceTxt.c_str(), sizeof(param->msData->info.usedSpace32Str));
  728. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  729. ./Core/Dialog/SavedataParam.cpp:1153:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 8 equals destination size [-Wstringop-truncation]
  730. 1153 | strncpy(param->utilityData->usedSpaceStr, spaceTxt.c_str(), sizeof(param->utilityData->usedSpaceStr));
  731. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  732. ./Core/Dialog/SavedataParam.cpp:1159:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 8 equals destination size [-Wstringop-truncation]
  733. 1159 | strncpy(param->utilityData->usedSpace32Str, spaceTxt.c_str(), sizeof(param->utilityData->usedSpace32Str));
  734. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  735. ./Core/ELF/ParamSFO.cpp: In member function ‘bool ParamSFOData::ReadSFO(const u8*, size_t)’:
  736. ./Core/ELF/ParamSFO.cpp:110:12: warning: unused variable ‘data_start’ [-Wunused-variable]
  737. 110 | const u8 *data_start = paramsfo + header->data_table_start;
  738. | ^~~~~~~~~~
  739. ./Core/FileSystems/MetaFileSystem.cpp: In member function ‘int MetaFileSystem::MapFilePath(const string&, std::string&, MetaFileSystem::MountPoint**)’:
  740. ./Core/FileSystems/MetaFileSystem.cpp:249:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘<unnamed enum>’ [-Wsign-compare]
  741. 249 | return error == SCE_KERNEL_ERROR_NOCWD ? error : 0;
  742. | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
  743. ./Core/HLE/ReplaceTables.cpp:443:12: warning: ‘int Replace_vmmul_q_transp()’ defined but not used [-Wunused-function]
  744. 443 | static int Replace_vmmul_q_transp() {
  745. | ^~~~~~~~~~~~~~~~~~~~~~
  746. ./Core/HLE/ReplaceTables.cpp:84:12: warning: ‘int Replace_asinf()’ defined but not used [-Wunused-function]
  747. 84 | static int Replace_asinf() {
  748. | ^~~~~~~~~~~~~
  749. ./Core/HLE/ReplaceTables.cpp:78:12: warning: ‘int Replace_acosf()’ defined but not used [-Wunused-function]
  750. 78 | static int Replace_acosf() {
  751. | ^~~~~~~~~~~~~
  752. ./Core/HLE/sceAtrac.cpp: In member function ‘void Atrac::SeekToSample(int)’:
  753. ./Core/HLE/sceAtrac.cpp:495:7: warning: unused variable ‘seekFrame’ [-Wunused-variable]
  754. 495 | int seekFrame = sample + offsetSamples - unalignedSamples;
  755. | ^~~~~~~~~
  756. In file included from ./Common/Log.h:20,
  757. from ./Common/Serialize/Serializer.h:37,
  758. from ./Core/HLE/sceAudiocodec.cpp:18:
  759. ./Core/HLE/sceAudiocodec.cpp: In function ‘void __sceAudiocodecDoState(PointerWrap&)’:
  760. ./Common/CommonFuncs.h:25:34: warning: division ‘sizeof (int*) / sizeof (int)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  761. 25 | #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
  762. | ~~~~~~~~~~^~~~~~~~~~~~~~
  763. ./Core/HLE/sceAudiocodec.cpp:191:45: note: in expansion of macro ‘ARRAY_SIZE’
  764. 191 | DoArray(p, codec_, s >= 2 ? count : (int)ARRAY_SIZE(codec_));
  765. | ^~~~~~~~~~
  766. ./Core/HLE/sceAudiocodec.cpp:182:9: note: first ‘sizeof’ operand was declared here
  767. 182 | auto codec_ = new int[count];
  768. | ^~~~~~
  769. In file included from ./Common/Log.h:20,
  770. from ./Common/Serialize/Serializer.h:37,
  771. from ./Core/HLE/sceAudiocodec.cpp:18:
  772. ./Common/CommonFuncs.h:25:34: warning: division ‘sizeof (unsigned int*) / sizeof (unsigned int)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  773. 25 | #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
  774. | ~~~~~~~~~~^~~~~~~~~~~~~~
  775. ./Core/HLE/sceAudiocodec.cpp:192:46: note: in expansion of macro ‘ARRAY_SIZE’
  776. 192 | DoArray(p, ctxPtr_, s >= 2 ? count : (int)ARRAY_SIZE(ctxPtr_));
  777. | ^~~~~~~~~~
  778. ./Core/HLE/sceAudiocodec.cpp:183:9: note: first ‘sizeof’ operand was declared here
  779. 183 | auto ctxPtr_ = new u32[count];
  780. | ^~~~~~~
  781. In member function ‘void Font::Init(const u8*, size_t, const FontRegistryEntry&)’,
  782. inlined from ‘Font::Font(const std::vector<unsigned char>&, const FontRegistryEntry&)’ at ./Core/HLE/sceFont.cpp:171:7,
  783. inlined from ‘void __LoadInternalFonts()’ at ./Core/HLE/sceFont.cpp:877:50:
  784. ./Core/HLE/sceFont.cpp:257:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 64 equals destination size [-Wstringop-truncation]
  785. 257 | strncpy(style_.fontName, entry.fontName, sizeof(style_.fontName));
  786. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  787. In member function ‘void Font::Init(const u8*, size_t, const FontRegistryEntry&)’,
  788. inlined from ‘Font::Font(const std::vector<unsigned char>&, const FontRegistryEntry&)’ at ./Core/HLE/sceFont.cpp:171:7,
  789. inlined from ‘void __LoadInternalFonts()’ at ./Core/HLE/sceFont.cpp:908:50:
  790. ./Core/HLE/sceFont.cpp:257:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 64 equals destination size [-Wstringop-truncation]
  791. 257 | strncpy(style_.fontName, entry.fontName, sizeof(style_.fontName));
  792. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  793. ./Core/HLE/sceJpeg.cpp: In function ‘u32 convertYCbCrToABGR(int, int, int)’:
  794. ./Core/HLE/sceJpeg.cpp:75:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  795. 75 | if (r > 0xFF) r = 0xFF; if(r < 0) r = 0;
  796. | ^~
  797. ./Core/HLE/sceJpeg.cpp:75:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  798. 75 | if (r > 0xFF) r = 0xFF; if(r < 0) r = 0;
  799. | ^~
  800. ./Core/HLE/sceJpeg.cpp:76:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  801. 76 | if (g > 0xFF) g = 0xFF; if(g < 0) g = 0;
  802. | ^~
  803. ./Core/HLE/sceJpeg.cpp:76:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  804. 76 | if (g > 0xFF) g = 0xFF; if(g < 0) g = 0;
  805. | ^~
  806. ./Core/HLE/sceJpeg.cpp:77:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  807. 77 | if (b > 0xFF) b = 0xFF; if(b < 0) b = 0;
  808. | ^~
  809. ./Core/HLE/sceJpeg.cpp:77:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  810. 77 | if (b > 0xFF) b = 0xFF; if(b < 0) b = 0;
  811. | ^~
  812. ./Core/HLE/sceJpeg.cpp: In function ‘u32 convertRGBToYCbCr(u32)’:
  813. ./Core/HLE/sceJpeg.cpp:286:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  814. 286 | if ( y > 0xFF) y = 0xFF; if ( y < 0) y = 0;
  815. | ^~
  816. ./Core/HLE/sceJpeg.cpp:286:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  817. 286 | if ( y > 0xFF) y = 0xFF; if ( y < 0) y = 0;
  818. | ^~
  819. ./Core/HLE/sceJpeg.cpp:287:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  820. 287 | if (cb > 0xFF) cb = 0xFF; if (cb < 0) cb = 0;
  821. | ^~
  822. ./Core/HLE/sceJpeg.cpp:287:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  823. 287 | if (cb > 0xFF) cb = 0xFF; if (cb < 0) cb = 0;
  824. | ^~
  825. ./Core/HLE/sceJpeg.cpp:288:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  826. 288 | if (cr > 0xFF) cr = 0xFF; if (cr < 0) cr = 0;
  827. | ^~
  828. ./Core/HLE/sceJpeg.cpp:288:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  829. 288 | if (cr > 0xFF) cr = 0xFF; if (cr < 0) cr = 0;
  830. | ^~
  831. ./Core/HLE/sceIo.cpp: In destructor ‘virtual FileNode::~FileNode()’:
  832. ./Core/HLE/sceIo.cpp:215:14: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  833. 215 | if (handle != -1)
  834. | ~~~~~~~^~~~~
  835. ./Core/HLE/sceIo.cpp: In function ‘u32 sceIoOpenAsync(const char*, int, int)’:
  836. ./Core/HLE/sceIo.cpp:2111:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘<unnamed enum>’ [-Wsign-compare]
  837. 2111 | if (error == SCE_KERNEL_ERROR_NODEV)
  838. | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
  839. In file included from ./Core/HLE/sceIo.cpp:41:
  840. ./Core/SaveState.h: At global scope:
  841. ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
  842. 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
  843. | ^~~~~~~~~~~~~~
  844. ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  845. 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
  846. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  847. ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
  848. 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
  849. | ^~~~~~~~~~~~~~~~~~~~
  850. ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  851. 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
  852. | ^~~~~~~~~~~~~~~~~~~~
  853. ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
  854. 35 | static const char *STATE_EXTENSION = "ppst";
  855. | ^~~~~~~~~~~~~~~
  856. In file included from ./Core/HLE/sceKernel.cpp:36:
  857. ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
  858. 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
  859. | ^~~~~~~~~~~~~~
  860. ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  861. 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
  862. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  863. ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
  864. 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
  865. | ^~~~~~~~~~~~~~~~~~~~
  866. ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  867. 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
  868. | ^~~~~~~~~~~~~~~~~~~~
  869. ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
  870. 35 | static const char *STATE_EXTENSION = "ppst";
  871. | ^~~~~~~~~~~~~~~
  872. In function ‘u32 sysclib_strcpy(u32, u32)’,
  873. inlined from ‘void WrapU_UU() [with u32 (* func)(u32, u32) = sysclib_strcpy]’ at ./Core/HLE/FunctionWrappers.h:301:19:
  874. ./Core/HLE/sceKernelInterrupt.cpp:722:9: warning: ‘char* strcpy(char*, const char*)’ accessing 1 byte at offsets [0, 1073741823] and [0, 1073741823] overlaps 1 byte at offset [0, 1073741823] [-Wrestrict]
  875. 722 | strcpy((char *)Memory::GetPointerWriteUnchecked(dst), (const char *)Memory::GetPointerUnchecked(src));
  876. | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  877. In function ‘u32 sysclib_strcat(u32, u32)’,
  878. inlined from ‘void WrapU_UU() [with u32 (* func)(u32, u32) = sysclib_strcat]’ at ./Core/HLE/FunctionWrappers.h:301:19:
  879. ./Core/HLE/sceKernelInterrupt.cpp:704:9: warning: ‘char* strcat(char*, const char*)’ accessing 1 or more bytes at offsets [0, 1073741823] and [0, 1073741823] may overlap 1 byte at offset [0, 2147483647] [-Wrestrict]
  880. 704 | strcat((char *)Memory::GetPointerWriteUnchecked(dst), (const char *)Memory::GetPointerUnchecked(src));
  881. | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  882. ./Core/HLE/sceKernelModule.cpp: In function ‘bool __KernelLoadExec(const char*, u32, std::string*)’:
  883. ./Core/HLE/sceKernelModule.cpp:1777:12: warning: ‘param.SceKernelLoadExecParam::args’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  884. 1777 | if (param.args > 0) {
  885. | ~~~~~~^~~~
  886. ./Core/HLE/sceKernelModule.cpp:1782:12: warning: ‘param.SceKernelLoadExecParam::keyp’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  887. 1782 | if (param.keyp != 0) {
  888. | ~~~~~~^~~~
  889. ./Core/HLE/sceMpeg.cpp: In function ‘bool decodePmpVideo(PSPPointer<SceMpegRingBuffer>, u32)’:
  890. ./Core/HLE/sceMpeg.cpp:1011:7: warning: unused variable ‘len’ [-Wunused-variable]
  891. 1011 | int len = avcodec_decode_video2(pCodecCtx, pFrame, &got_picture, &packet);
  892. | ^~~
  893. ./Core/HLE/sceMpeg.cpp: In function ‘u32 convertABGRToYCbCr(u32)’:
  894. ./Core/HLE/sceMpeg.cpp:2146:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  895. 2146 | if ( y > 0xFF) y = 0xFF; if ( y < 0) y = 0;
  896. | ^~
  897. ./Core/HLE/sceMpeg.cpp:2146:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  898. 2146 | if ( y > 0xFF) y = 0xFF; if ( y < 0) y = 0;
  899. | ^~
  900. ./Core/HLE/sceMpeg.cpp:2147:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  901. 2147 | if (cb > 0xFF) cb = 0xFF; if (cb < 0) cb = 0;
  902. | ^~
  903. ./Core/HLE/sceMpeg.cpp:2147:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  904. 2147 | if (cb > 0xFF) cb = 0xFF; if (cb < 0) cb = 0;
  905. | ^~
  906. ./Core/HLE/sceMpeg.cpp:2148:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  907. 2148 | if (cr > 0xFF) cr = 0xFF; if (cr < 0) cr = 0;
  908. | ^~
  909. ./Core/HLE/sceMpeg.cpp:2148:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  910. 2148 | if (cr > 0xFF) cr = 0xFF; if (cr < 0) cr = 0;
  911. | ^~
  912. ./Core/HLE/sceNet.cpp: In function ‘void __NetApctlCallbacks()’:
  913. ./Core/HLE/sceNet.cpp:435:9: warning: unused variable ‘argAddr’ [-Wunused-variable]
  914. 435 | auto& argAddr = args.data[2];
  915. | ^~~~~~~
  916. ./Core/HLE/sceNet.cpp: In function ‘u32 AllocUser(u32, bool, const char*)’:
  917. ./Core/HLE/sceNet.cpp:557:11: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  918. 557 | if (addr == -1)
  919. | ~~~~~^~~~~
  920. ./Core/HLE/sceNet.cpp: In function ‘int sceNetApctlGetInfo(int, u32)’:
  921. ./Core/HLE/sceNet.cpp:899:6: warning: unused variable ‘info’ [-Wunused-variable]
  922. 899 | u8* info = Memory::GetPointerWrite(pInfoAddr); // FIXME: Points to a union instead of a struct thus each field have the same address
  923. | ^~~~
  924. ./Core/HLE/sceNetAdhoc.cpp: In function ‘void __GameModeNotify(u64, int)’:
  925. ./Core/HLE/sceNetAdhoc.cpp:206:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘<unnamed enum>’ [-Wsign-compare]
  926. 206 | if (sent != ERROR_NET_ADHOC_WOULD_BLOCK) {
  927. | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  928. ./Core/HLE/sceNetAdhoc.cpp:214:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<GameModeArea>::size_type’ {aka ‘unsigned int’} [-Wsign-compare]
  929. 214 | if (sentcount == replicaGameModeAreas.size())
  930. | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  931. ./Core/HLE/sceNetAdhoc.cpp:240:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<GameModeArea>::size_type’ {aka ‘unsigned int’} [-Wsign-compare]
  932. 240 | if (recvd == replicaGameModeAreas.size()) {
  933. | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  934. ./Core/HLE/sceNetAdhoc.cpp: In function ‘void deleteMatchingEvents(int)’:
  935. ./Core/HLE/sceNetAdhoc.cpp:1103:37: warning: comparison of integer expressions of different signedness: ‘u32_le’ {aka ‘unsigned int’} and ‘const int’ [-Wsign-compare]
  936. 1103 | if (matchingId < 0 || it->data[0] == matchingId) {
  937. | ~~~~~~~~~~~~^~~~~~~~~~~~~
  938. ./Core/HLE/sceNetAdhoc.cpp: In function ‘int AcceptPtpSocket(int, int, sockaddr_in&, SceNetEtherAddr*, u16_le*)’:
  939. ./Core/HLE/sceNetAdhoc.cpp:3562:8: warning: unused variable ‘ptpsocket’ [-Wunused-variable]
  940. 3562 | auto& ptpsocket = socket->data.ptp;
  941. | ^~~~~~~~~
  942. ./Core/HLE/sceNetAdhoc.cpp: In function ‘int sceNetAdhocMatchingCreate(int, int, int, int, int, int, int, int, u32)’:
  943. ./Core/HLE/sceNetAdhoc.cpp:4925:60: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘SceNetAdhocMatchingContext’ {aka ‘struct SceNetAdhocMatchingContext’} with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
  944. 4925 | memset(context, 0, sizeof(SceNetAdhocMatchingContext));
  945. | ^
  946. In file included from ./Core/HLE/sceNetAdhoc.h:21,
  947. from ./Core/HLE/sceNetAdhoc.cpp:57:
  948. ./Core/HLE/proAdhoc.h:494:16: note: ‘SceNetAdhocMatchingContext’ {aka ‘struct SceNetAdhocMatchingContext’} declared here
  949. 494 | typedef struct SceNetAdhocMatchingContext {
  950. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  951. ./Core/HLE/proAdhoc.cpp: In function ‘void changeBlockingMode(int, int)’:
  952. ./Core/HLE/proAdhoc.cpp:337:16: warning: unused variable ‘on’ [-Wunused-variable]
  953. 337 | unsigned long on = 1;
  954. | ^~
  955. ./Core/HLE/proAdhoc.cpp:338:16: warning: unused variable ‘off’ [-Wunused-variable]
  956. 338 | unsigned long off = 0;
  957. | ^~~
  958. ./Core/HLE/proAdhoc.cpp: In function ‘void deleteFriendByIP(uint32_t)’:
  959. ./Core/HLE/proAdhoc.cpp:467:27: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable]
  960. 467 | SceNetAdhocctlPeerInfo * prev = NULL;
  961. | ^~~~
  962. ./Core/HLE/proAdhoc.cpp: In function ‘void sendChat(std::string)’:
  963. ./Core/HLE/proAdhoc.cpp:1326:9: warning: unused variable ‘chatResult’ [-Wunused-variable]
  964. 1326 | int chatResult = send((int)metasocket, (const char*)&chat, sizeof(chat), MSG_NOSIGNAL);
  965. | ^~~~~~~~~~
  966. ./Core/HLE/proAdhoc.cpp: In function ‘int friendFinder()’:
  967. ./Core/HLE/proAdhoc.cpp:1368:30: warning: variable ‘chat’ set but not used [-Wunused-but-set-variable]
  968. 1368 | SceNetAdhocctlChatPacketC2S chat;
  969. | ^~~~
  970. ./Core/HLE/proAdhoc.cpp:1375:11: warning: unused variable ‘lastreceptionupdate’ [-Wunused-variable]
  971. 1375 | uint64_t lastreceptionupdate = 0;
  972. | ^~~~~~~~~~~~~~~~~~~
  973. ./Core/HLE/proAdhoc.cpp: In function ‘int setSockNoSIGPIPE(int, int)’:
  974. ./Core/HLE/proAdhoc.cpp:2042:6: warning: unused variable ‘opt’ [-Wunused-variable]
  975. 2042 | int opt = flag;
  976. | ^~~
  977. ./Core/HLE/proAdhoc.cpp: In function ‘int initNetwork(SceNetAdhocctlAdhocId*)’:
  978. ./Core/HLE/proAdhoc.cpp:2220:6: warning: unused variable ‘cnt’ [-Wunused-variable]
  979. 2220 | int cnt = 0;
  980. | ^~~
  981. ./Core/HLE/proAdhocServer.cpp: In function ‘void game_product_override(SceNetAdhocctlProductCode*)’:
  982. ./Core/HLE/proAdhocServer.cpp:1413:41: warning: argument to ‘sizeof’ in ‘char* strncpy(char*, const char*, size_t)’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
  983. 1413 | strncpy(unkproduct.name, productid, sizeof(productid));
  984. | ^~~~~~~~~~~~~~~~~
  985. ./Core/HLE/proAdhocServer.cpp: In function ‘void change_blocking_mode(int, int)’:
  986. ./Core/HLE/proAdhocServer.cpp:1781:16: warning: unused variable ‘on’ [-Wunused-variable]
  987. 1781 | unsigned long on = 1;
  988. | ^~
  989. ./Core/HLE/proAdhocServer.cpp:1782:16: warning: unused variable ‘off’ [-Wunused-variable]
  990. 1782 | unsigned long off = 0;
  991. | ^~~
  992. ./Core/HLE/proAdhocServer.cpp: In function ‘void game_product_relink(SceNetAdhocctlProductCode*, char*, char*)’:
  993. ./Core/HLE/proAdhocServer.cpp:1282:68: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 9 equals destination size [-Wstringop-truncation]
  994. 1282 | if(strncmp(product->data, from, PRODUCT_CODE_LENGTH) == 0) strncpy(product->data, to, PRODUCT_CODE_LENGTH);
  995. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  996. ./Core/HLE/proAdhocServer.cpp: In function ‘void game_product_override(SceNetAdhocctlProductCode*)’:
  997. ./Core/HLE/proAdhocServer.cpp:1352:12: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 9 bytes from a string of length 9 [-Wstringop-truncation]
  998. 1352 | strncpy(product->data, it->id_to, PRODUCT_CODE_LENGTH);
  999. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1000. ./Core/HLE/proAdhocServer.cpp: In function ‘int server_loop(int)’:
  1001. ./Core/HLE/proAdhocServer.cpp:2061:15: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation]
  1002. 2061 | strncpy(message, packet->message, sizeof(message) - 1);
  1003. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1004. ./Core/HLE/scePower.cpp: In function ‘int sceKernelVolatileMemUnlock(int)’:
  1005. ./Core/HLE/scePower.cpp:369:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘<unnamed enum>’ [-Wsign-compare]
  1006. 369 | if (error == SCE_KERNEL_ERROR_INVALID_MODE) {
  1007. | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1008. ./Core/HLE/scePower.cpp:372:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘<unnamed enum>’ [-Wsign-compare]
  1009. 372 | } else if (error == SCE_KERNEL_ERROR_SEMA_OVF) {
  1010. | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1011. In file included from ./Core/HLE/sceUsbCam.cpp:29:
  1012. ./Core/HW/Camera.h:77:20: warning: ‘v4l_buffers’ defined but not used [-Wunused-variable]
  1013. 77 | static v4l_buf_t *v4l_buffers;
  1014. | ^~~~~~~~~~~
  1015. ./Core/HW/Camera.h:76:20: warning: ‘v4l_buffer_count’ defined but not used [-Wunused-variable]
  1016. 76 | static int v4l_buffer_count;
  1017. | ^~~~~~~~~~~~~~~~
  1018. ./Core/HW/Camera.h:75:20: warning: ‘v4l_thread’ defined but not used [-Wunused-variable]
  1019. 75 | static pthread_t v4l_thread;
  1020. | ^~~~~~~~~~
  1021. ./Core/HW/Camera.h:73:20: warning: ‘v4l_ideal_height’ defined but not used [-Wunused-variable]
  1022. 73 | static int v4l_ideal_height;
  1023. | ^~~~~~~~~~~~~~~~
  1024. ./Core/HW/Camera.h:72:20: warning: ‘v4l_ideal_width’ defined but not used [-Wunused-variable]
  1025. 72 | static int v4l_ideal_width;
  1026. | ^~~~~~~~~~~~~~~
  1027. ./Core/HW/Camera.h:71:20: warning: ‘v4l_height_fixed_aspect’ defined but not used [-Wunused-variable]
  1028. 71 | static int v4l_height_fixed_aspect;
  1029. | ^~~~~~~~~~~~~~~~~~~~~~~
  1030. ./Core/HW/Camera.h:70:20: warning: ‘v4l_hw_height’ defined but not used [-Wunused-variable]
  1031. 70 | static int v4l_hw_height;
  1032. | ^~~~~~~~~~~~~
  1033. ./Core/HW/Camera.h:69:20: warning: ‘v4l_hw_width’ defined but not used [-Wunused-variable]
  1034. 69 | static int v4l_hw_width;
  1035. | ^~~~~~~~~~~~
  1036. ./Core/HW/Camera.h:68:20: warning: ‘v4l_format’ defined but not used [-Wunused-variable]
  1037. 68 | static uint32_t v4l_format;
  1038. | ^~~~~~~~~~
  1039. ./Core/HW/Camera.h:67:20: warning: ‘v4l_fd’ defined but not used [-Wunused-variable]
  1040. 67 | static int v4l_fd = -1;
  1041. | ^~~~~~
  1042. ./Core/HLE/sceNp.cpp: In function ‘int sceNpAuthAbortRequest(int)’:
  1043. ./Core/HLE/sceNp.cpp:449:16: warning: comparison of integer expressions of different signedness: ‘u32_le’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  1044. 449 | (it->data[0] == requestId) ? it = npAuthEvents.erase(it) : ++it;
  1045. | ~~~~~~~~~~~~^~~~~~~~~~~~
  1046. ./Core/HLE/sceNp2.cpp: In function ‘int sceNpMatching2GetServerInfo(int, u32, u32, u32)’:
  1047. ./Core/HLE/sceNp2.cpp:377:6: warning: unused variable ‘cbArg’ [-Wunused-variable]
  1048. 377 | u32 cbArg = Memory::Read_U32(unknown1Ptr + 0x04);
  1049. | ^~~~~
  1050. ./Core/HLE/sceNp2.cpp: In function ‘int sceNpMatching2JoinRoom(int, u32, u32, u32, u32, u32)’:
  1051. ./Core/HLE/sceNp2.cpp:464:6: warning: unused variable ‘cbArg’ [-Wunused-variable]
  1052. 464 | u32 cbArg = Memory::Read_U32(reqParamPtr + 0x04);
  1053. | ^~~~~
  1054. ./Core/HLE/sceNp2.cpp: In function ‘int sceNpMatching2SearchRoom(int, u32, u32, u32)’:
  1055. ./Core/HLE/sceNp2.cpp:501:6: warning: unused variable ‘cbArg’ [-Wunused-variable]
  1056. 501 | u32 cbArg = Memory::Read_U32(reqParamPtr + 0x04);
  1057. | ^~~~~
  1058. ./Core/HW/SimpleAudioDec.cpp: In member function ‘int AuCtx::AuStreamBytesNeeded()’:
  1059. ./Core/HW/SimpleAudioDec.cpp:419:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘u64’ {aka ‘long long unsigned int’} [-Wsign-compare]
  1060. 419 | if (readPos >= endPos)
  1061. | ~~~~~~~~^~~~~~~~~
  1062. ./Core/HW/Camera.cpp: In function ‘int __v4l_startCapture(int, int)’:
  1063. ./Core/HW/Camera.cpp:356:47: warning: comparison of integer expressions of different signedness: ‘__u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  1064. 356 | bool matchesIdeal = frmsize.discrete.width >= ideal_width && frmsize.discrete.height >= ideal_height;
  1065. | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
  1066. ./Core/HW/Camera.cpp:356:89: warning: comparison of integer expressions of different signedness: ‘__u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  1067. 356 | bool matchesIdeal = frmsize.discrete.width >= ideal_width && frmsize.discrete.height >= ideal_height;
  1068. | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  1069. ./Core/HW/SasAudio.cpp: In member function ‘void SasInstance::MixVoice(SasVoice&)’:
  1070. ./Core/HW/SasAudio.cpp:505:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  1071. 505 | if (samplesToRead > ARRAY_SIZE(mixTemp_) - 2) {
  1072. | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
  1073. ./Core/MIPS/MIPSAnalyst.cpp: In function ‘MIPSAnalyst::MipsOpcodeInfo MIPSAnalyst::GetOpcodeInfo(DebugInterface*, u32)’:
  1074. ./Core/MIPS/MIPSAnalyst.cpp:1432:32: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct MIPSAnalyst::MipsOpcodeInfo’; use assignment or value-initialization instead [-Wclass-memaccess]
  1075. 1432 | memset(&info, 0, sizeof(info));
  1076. | ^
  1077. In file included from ./Core/MIPS/MIPSAnalyst.cpp:37:
  1078. ./Core/MIPS/MIPSAnalyst.h:142:17: note: ‘struct MIPSAnalyst::MipsOpcodeInfo’ declared here
  1079. 142 | typedef struct {
  1080. | ^
  1081. ./Core/MIPS/MIPSAnalyst.cpp: In function ‘void MIPSAnalyst::ApplyHashMap()’:
  1082. ./Core/MIPS/MIPSAnalyst.cpp:1364:13: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 63 bytes from a string of length 63 [-Wstringop-truncation]
  1083. 1364 | strncpy(f.name, mf->name, sizeof(mf->name) - 1);
  1084. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1085. ./Core/MIPS/MIPSIntVFPU.cpp: In function ‘void MIPSInt::Int_Vminmax(MIPSOpcode)’:
  1086. ./Core/MIPS/MIPSIntVFPU.cpp:1883:7: warning: unused variable ‘cond’ [-Wunused-variable]
  1087. 1883 | int cond = op&15;
  1088. | ^~~~
  1089. In file included from ./Core/Reporting.cpp:38:
  1090. ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
  1091. 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
  1092. | ^~~~~~~~~~~~~~
  1093. ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  1094. 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
  1095. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  1096. ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1097. 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
  1098. | ^~~~~~~~~~~~~~~~~~~~
  1099. ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  1100. 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
  1101. | ^~~~~~~~~~~~~~~~~~~~
  1102. ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1103. 35 | static const char *STATE_EXTENSION = "ppst";
  1104. | ^~~~~~~~~~~~~~~
  1105. In file included from ./Core/System.cpp:67:
  1106. ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
  1107. 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
  1108. | ^~~~~~~~~~~~~~
  1109. ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  1110. 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
  1111. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  1112. ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1113. 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
  1114. | ^~~~~~~~~~~~~~~~~~~~
  1115. ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  1116. 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
  1117. | ^~~~~~~~~~~~~~~~~~~~
  1118. ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1119. 35 | static const char *STATE_EXTENSION = "ppst";
  1120. | ^~~~~~~~~~~~~~~
  1121. In file included from ./Core/ELF/ParamSFO.h:25,
  1122. from ./Core/TextureReplacer.cpp:43:
  1123. ./Core/TextureReplacer.cpp: In member function ‘bool ReplacedTexture::Load(int, void*, int)’:
  1124. ./Core/TextureReplacer.cpp:986:27: warning: comparison of integer expressions of different signedness: ‘std::vector<unsigned char>::size_type’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  1125. 986 | _assert_msg_(data.size() == info.w * info.h * 4, "Data has wrong size");
  1126. | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
  1127. ./Common/Log.h:158:8: note: in definition of macro ‘_assert_msg_’
  1128. 158 | if (!(_a_)) { \
  1129. | ^~~
  1130. ./Core/Util/GameManager.cpp: In member function ‘bool GameManager::InstallGame(Path, Path, bool)’:
  1131. ./Core/Util/GameManager.cpp:304:6: warning: unused variable ‘error’ [-Wunused-variable]
  1132. 304 | int error = 0;
  1133. | ^~~~~
  1134. ./Core/Util/PortManager.cpp: In member function ‘bool PortManager::Initialize(unsigned int)’:
  1135. ./Core/Util/PortManager.cpp:159:7: warning: unused variable ‘status’ [-Wunused-variable]
  1136. 159 | int status = UPNP_GetValidIGD(devlist, urls, datas, lanaddr, sizeof(lanaddr)); //possible "status" values, 0 = NO IGD found, 1 = A valid connected IGD has been found, 2 = A valid IGD has been found but it reported as not connected, 3 = an UPnP device has been found but was not recognized as an IGD
  1137. | ^~~~~~
  1138. ./GPU/GLES/DepthBufferGLES.cpp: In member function ‘void FramebufferManagerGLES::PackDepthbuffer(VirtualFramebuffer*, int, int, int, int)’:
  1139. ./GPU/GLES/DepthBufferGLES.cpp:172:6: warning: unused variable ‘totalPixels’ [-Wunused-variable]
  1140. 172 | int totalPixels = h == 1 ? packWidth : vfb->z_stride * h;
  1141. | ^~~~~~~~~~~
  1142. In file included from ./GPU/GLES/ShaderManagerGLES.cpp:48:
  1143. ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
  1144. 134 | static const char *ub_vs_bonesStr =
  1145. | ^~~~~~~~~~~~~~
  1146. ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
  1147. 93 | static const char *ub_vs_lightsStr =
  1148. | ^~~~~~~~~~~~~~~
  1149. ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
  1150. 49 | static const char *ub_baseStr =
  1151. | ^~~~~~~~~~
  1152. ./GPU/GLES/DrawEngineGLES.cpp: In member function ‘void DrawEngineGLES::DoFlush()’:
  1153. ./GPU/GLES/DrawEngineGLES.cpp:286:8: warning: unused variable ‘dest’ [-Wunused-variable]
  1154. 286 | u8 *dest = (u8 *)DecodeVertsToPushBuffer(frameData.pushVertex, &vertexBufferOffset, &vertexBuffer);
  1155. | ^~~~
  1156. In file included from ./GPU/Vulkan/GPU_Vulkan.h:26,
  1157. from ./GPU/Vulkan/DebugVisVulkan.cpp:28:
  1158. ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
  1159. ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
  1160. 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
  1161. | ^~~~~~~~
  1162. ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
  1163. 242 | VulkanDescSetPool descPool;
  1164. | ^~~~~~~~
  1165. ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
  1166. 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
  1167. | ^~~~~~~~~
  1168. In file included from ./GPU/Vulkan/DrawEngineVulkan.cpp:46:
  1169. ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
  1170. ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
  1171. 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
  1172. | ^~~~~~~~
  1173. ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
  1174. 242 | VulkanDescSetPool descPool;
  1175. | ^~~~~~~~
  1176. ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
  1177. 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
  1178. | ^~~~~~~~~
  1179. ./GPU/Vulkan/DrawEngineVulkan.cpp: In member function ‘void DrawEngineVulkan::InitDeviceObjects()’:
  1180. ./GPU/Vulkan/DrawEngineVulkan.cpp:142:11: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
  1181. 142 | VkResult res = vkCreateDescriptorSetLayout(device, &dsl, nullptr, &descriptorSetLayout_);
  1182. | ^~~
  1183. In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
  1184. from ./GPU/Vulkan/DrawEngineVulkan.cpp:48:
  1185. ./GPU/Common/ShaderUniforms.h: At global scope:
  1186. ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
  1187. 134 | static const char *ub_vs_bonesStr =
  1188. | ^~~~~~~~~~~~~~
  1189. ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
  1190. 93 | static const char *ub_vs_lightsStr =
  1191. | ^~~~~~~~~~~~~~~
  1192. ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
  1193. 49 | static const char *ub_baseStr =
  1194. | ^~~~~~~~~~
  1195. ./GPU/Vulkan/DrawEngineVulkan.cpp: In member function ‘void DrawEngineVulkan::DoFlush()’:
  1196. ./GPU/Vulkan/DrawEngineVulkan.cpp:817:30: warning: ‘ibOffset’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  1197. 817 | renderManager->DrawIndexed(pipelineLayout_, ds, ARRAY_SIZE(dynamicUBOOffsets), dynamicUBOOffsets, vbuf, vbOffset, ibuf, ibOffset, vertexCount, 1, VK_INDEX_TYPE_UINT16);
  1198. | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1199. In file included from ./GPU/Vulkan/FramebufferManagerVulkan.cpp:45:
  1200. ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
  1201. ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
  1202. 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
  1203. | ^~~~~~~~
  1204. ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
  1205. 242 | VulkanDescSetPool descPool;
  1206. | ^~~~~~~~
  1207. ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
  1208. 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
  1209. | ^~~~~~~~~
  1210. In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
  1211. from ./GPU/Vulkan/FramebufferManagerVulkan.cpp:47:
  1212. ./GPU/Common/ShaderUniforms.h: At global scope:
  1213. ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
  1214. 134 | static const char *ub_vs_bonesStr =
  1215. | ^~~~~~~~~~~~~~
  1216. ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
  1217. 93 | static const char *ub_vs_lightsStr =
  1218. | ^~~~~~~~~~~~~~~
  1219. ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
  1220. 49 | static const char *ub_baseStr =
  1221. | ^~~~~~~~~~
  1222. In file included from ./GPU/Vulkan/PipelineManagerVulkan.cpp:8:
  1223. ./GPU/Vulkan/PipelineManagerVulkan.cpp: In function ‘void VertexAttribSetup(VkVertexInputAttributeDescription*, int, int, PspAttributeLocation)’:
  1224. ./GPU/Vulkan/PipelineManagerVulkan.cpp:92:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  1225. 92 | _assert_(fmt < ARRAY_SIZE(VComp));
  1226. ./Common/Log.h:153:8: note: in definition of macro ‘_assert_’
  1227. 153 | if (!(_a_)) {\
  1228. | ^~~
  1229. In file included from ./GPU/Vulkan/GPU_Vulkan.h:26,
  1230. from ./GPU/Vulkan/GPU_Vulkan.cpp:42:
  1231. ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
  1232. ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
  1233. 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
  1234. | ^~~~~~~~
  1235. ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
  1236. 242 | VulkanDescSetPool descPool;
  1237. | ^~~~~~~~
  1238. ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
  1239. 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
  1240. | ^~~~~~~~~
  1241. ./GPU/Vulkan/PipelineManagerVulkan.cpp: At global scope:
  1242. ./GPU/Vulkan/PipelineManagerVulkan.cpp:155:20: warning: ‘std::string CutFromMain(std::string)’ defined but not used [-Wunused-function]
  1243. 155 | static std::string CutFromMain(std::string str) {
  1244. | ^~~~~~~~~~~
  1245. In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
  1246. from ./GPU/Vulkan/PipelineManagerVulkan.cpp:13:
  1247. ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
  1248. 134 | static const char *ub_vs_bonesStr =
  1249. | ^~~~~~~~~~~~~~
  1250. ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
  1251. 93 | static const char *ub_vs_lightsStr =
  1252. | ^~~~~~~~~~~~~~~
  1253. ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
  1254. 49 | static const char *ub_baseStr =
  1255. | ^~~~~~~~~~
  1256. In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
  1257. from ./GPU/Vulkan/GPU_Vulkan.cpp:41:
  1258. ./GPU/Common/ShaderUniforms.h: At global scope:
  1259. ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
  1260. 134 | static const char *ub_vs_bonesStr =
  1261. | ^~~~~~~~~~~~~~
  1262. ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
  1263. 93 | static const char *ub_vs_lightsStr =
  1264. | ^~~~~~~~~~~~~~~
  1265. ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
  1266. 49 | static const char *ub_baseStr =
  1267. | ^~~~~~~~~~
  1268. In file included from ./GPU/Vulkan/ShaderManagerVulkan.cpp:42:
  1269. ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
  1270. ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
  1271. 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
  1272. | ^~~~~~~~
  1273. ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
  1274. 242 | VulkanDescSetPool descPool;
  1275. | ^~~~~~~~
  1276. ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
  1277. 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
  1278. | ^~~~~~~~~
  1279. ./GPU/Vulkan/ShaderManagerVulkan.cpp: In member function ‘bool ShaderManagerVulkan::LoadCache(FILE*)’:
  1280. ./GPU/Vulkan/ShaderManagerVulkan.cpp:394:11: warning: unused variable ‘vendorID’ [-Wunused-variable]
  1281. 394 | uint32_t vendorID = vulkan->GetPhysicalDeviceProperties().properties.vendorID;
  1282. | ^~~~~~~~
  1283. In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
  1284. from ./GPU/Vulkan/ShaderManagerVulkan.cpp:41:
  1285. ./GPU/Common/ShaderUniforms.h: At global scope:
  1286. ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
  1287. 134 | static const char *ub_vs_bonesStr =
  1288. | ^~~~~~~~~~~~~~
  1289. ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
  1290. 93 | static const char *ub_vs_lightsStr =
  1291. | ^~~~~~~~~~~~~~~
  1292. ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
  1293. 49 | static const char *ub_baseStr =
  1294. | ^~~~~~~~~~
  1295. In file included from ./GPU/Vulkan/GPU_Vulkan.h:26,
  1296. from ./GPU/Vulkan/StateMappingVulkan.cpp:31:
  1297. ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
  1298. ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
  1299. 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
  1300. | ^~~~~~~~
  1301. ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
  1302. 242 | VulkanDescSetPool descPool;
  1303. | ^~~~~~~~
  1304. ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
  1305. 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
  1306. | ^~~~~~~~~
  1307. In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
  1308. from ./GPU/Vulkan/StateMappingVulkan.cpp:34:
  1309. ./GPU/Common/ShaderUniforms.h: At global scope:
  1310. ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
  1311. 134 | static const char *ub_vs_bonesStr =
  1312. | ^~~~~~~~~~~~~~
  1313. ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
  1314. 93 | static const char *ub_vs_lightsStr =
  1315. | ^~~~~~~~~~~~~~~
  1316. ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
  1317. 49 | static const char *ub_baseStr =
  1318. | ^~~~~~~~~~
  1319. ./GPU/Vulkan/VulkanUtil.cpp: In member function ‘void VulkanComputeShaderManager::InitDeviceObjects()’:
  1320. ./GPU/Vulkan/VulkanUtil.cpp:97:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  1321. 97 | for (int i = 0; i < ARRAY_SIZE(frameData_); i++) {
  1322. ./GPU/Vulkan/VulkanUtil.cpp: In member function ‘void VulkanComputeShaderManager::DestroyDeviceObjects()’:
  1323. ./GPU/Vulkan/VulkanUtil.cpp:117:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  1324. 117 | for (int i = 0; i < ARRAY_SIZE(frameData_); i++) {
  1325. In file included from ./GPU/Vulkan/TextureCacheVulkan.cpp:52:
  1326. ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
  1327. ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
  1328. 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
  1329. | ^~~~~~~~
  1330. ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
  1331. 242 | VulkanDescSetPool descPool;
  1332. | ^~~~~~~~
  1333. ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
  1334. 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
  1335. | ^~~~~~~~~
  1336. ./GPU/Vulkan/TextureCacheVulkan.cpp: In member function ‘void TextureCacheVulkan::LoadTextureLevel(TexCacheEntry&, uint8_t*, int, int, int, VkFormat)’:
  1337. ./GPU/Vulkan/TextureCacheVulkan.cpp:736:7: warning: unused variable ‘fmt’ [-Wunused-variable]
  1338. 736 | u32 fmt = dstFmt;
  1339. | ^~~
  1340. In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
  1341. from ./GPU/Vulkan/TextureCacheVulkan.cpp:51:
  1342. ./GPU/Common/ShaderUniforms.h: At global scope:
  1343. ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
  1344. 134 | static const char *ub_vs_bonesStr =
  1345. | ^~~~~~~~~~~~~~
  1346. ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
  1347. 93 | static const char *ub_vs_lightsStr =
  1348. | ^~~~~~~~~~~~~~~
  1349. ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
  1350. 49 | static const char *ub_baseStr =
  1351. | ^~~~~~~~~~
  1352. ./GPU/Common/DepalettizeCommon.cpp: In member function ‘DepalShader* DepalShaderCache::GetDepalettizeShader(uint32_t, GEBufferFormat)’:
  1353. ./GPU/Common/DepalettizeCommon.cpp:157:16: warning: unused variable ‘depal’ [-Wunused-variable]
  1354. 157 | DepalShader *depal = shader->second;
  1355. | ^~~~~
  1356. In file included from ./GPU/Common/FragmentShaderGenerator.cpp:30:
  1357. ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
  1358. 134 | static const char *ub_vs_bonesStr =
  1359. | ^~~~~~~~~~~~~~
  1360. ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
  1361. 93 | static const char *ub_vs_lightsStr =
  1362. | ^~~~~~~~~~~~~~~
  1363. In file included from ./GPU/Common/ShaderUniforms.cpp:4:
  1364. ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
  1365. 134 | static const char *ub_vs_bonesStr =
  1366. | ^~~~~~~~~~~~~~
  1367. ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
  1368. 93 | static const char *ub_vs_lightsStr =
  1369. | ^~~~~~~~~~~~~~~
  1370. ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
  1371. 49 | static const char *ub_baseStr =
  1372. | ^~~~~~~~~~
  1373. ./GPU/Common/SoftwareTransformCommon.cpp: In member function ‘void SoftwareTransform::BuildDrawingParams(int, int, u32, u16*&, int&, SoftwareTransformResult*)’:
  1374. ./GPU/Common/SoftwareTransformCommon.cpp:573:7: warning: unused variable ‘useBufferedRendering’ [-Wunused-variable]
  1375. 573 | bool useBufferedRendering = fbman->UseBufferedRendering();
  1376. | ^~~~~~~~~~~~~~~~~~~~
  1377. ./GPU/Common/SoftwareTransformCommon.cpp: In member function ‘void SoftwareTransform::ExpandLines(int, int&, u16*&, TransformedVertex*, TransformedVertex*, int&, bool)’:
  1378. ./GPU/Common/SoftwareTransformCommon.cpp:824:29: warning: unused variable ‘transVtxL’ [-Wunused-variable]
  1379. 824 | const TransformedVertex &transVtxL = transVtx1.x <= transVtx2.x ? transVtx1 : transVtx2;
  1380. | ^~~~~~~~~
  1381. ./GPU/Common/SoftwareTransformCommon.cpp:825:29: warning: unused variable ‘transVtxR’ [-Wunused-variable]
  1382. 825 | const TransformedVertex &transVtxR = transVtx1.x <= transVtx2.x ? transVtx2 : transVtx1;
  1383. | ^~~~~~~~~
  1384. ./GPU/Common/TextureDecoder.cpp:221:12: warning: ‘u32 QuickTexHashNonSSE(const void*, u32)’ defined but not used [-Wunused-function]
  1385. 221 | static u32 QuickTexHashNonSSE(const void *checkp, u32 size) {
  1386. | ^~~~~~~~~~~~~~~~~~
  1387. ./GPU/Common/TextureCacheCommon.cpp: In member function ‘int TextureCacheCommon::GetBestCandidateIndex(const std::vector<AttachCandidate>&)’:
  1388. ./GPU/Common/TextureCacheCommon.cpp:690:68: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const u32’ {aka ‘const unsigned int’} [-Wsign-compare]
  1389. 690 | if (candidate.channel == RASTER_COLOR && candidate.fb->fb_stride == candidate.entry.bufw) {
  1390. | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
  1391. ./GPU/Common/TextureCacheCommon.cpp: In member function ‘FramebufferMatchInfo TextureCacheCommon::MatchFramebuffer(const TextureDefinition&, VirtualFramebuffer*, u32, RasterChannel) const’:
  1392. ./GPU/Common/TextureCacheCommon.cpp:935:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const u32’ {aka ‘const unsigned int’} [-Wsign-compare]
  1393. 935 | if (framebuffer->fb_stride != entry.bufw) {
  1394. | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
  1395. ./GPU/Common/TextureCacheCommon.cpp:981:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const u32’ {aka ‘const unsigned int’} [-Wsign-compare]
  1396. 981 | if (framebuffer->fb_stride != entry.bufw) {
  1397. | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
  1398. ./GPU/Common/TextureCacheCommon.cpp: In member function ‘void TextureCacheCommon::LoadClut(u32, u32)’:
  1399. ./GPU/Common/TextureCacheCommon.cpp:1155:6: warning: unused variable ‘startPos’ [-Wunused-variable]
  1400. 1155 | u32 startPos = gstate.getClutIndexStartPos();
  1401. | ^~~~~~~~
  1402. ./GPU/Common/TextureCacheCommon.cpp: In member function ‘bool TextureCacheCommon::PrepareBuildTexture(BuildTexturePlan&, TexCacheEntry*)’:
  1403. ./GPU/Common/TextureCacheCommon.cpp:2221:7: warning: unused variable ‘tw’ [-Wunused-variable]
  1404. 2221 | int tw = gstate.getTextureWidth(0);
  1405. | ^~
  1406. ./GPU/Common/TextureCacheCommon.cpp:2222:7: warning: unused variable ‘th’ [-Wunused-variable]
  1407. 2222 | int th = gstate.getTextureHeight(0);
  1408. | ^~
  1409. ./GPU/Common/TextureScalerCommon.cpp:301:13: warning: ‘void {anonymous}::upscale_block_c(ptrdiff_t, ptrdiff_t, ptrdiff_t, const u8*, int, ptrdiff_t, float, float, ptrdiff_t, ptrdiff_t, u8*)’ defined but not used [-Wunused-function]
  1410. 301 | static void upscale_block_c(
  1411. | ^~~~~~~~~~~~~~~
  1412. ./GPU/Debugger/Playback.cpp: In member function ‘bool GPURecord::BufMapping::SlabInfo::Alloc()’:
  1413. ./GPU/Debugger/Playback.cpp:222:19: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  1414. 222 | if (psp_pointer_ == -1) {
  1415. | ~~~~~~~~~~~~~^~~~~
  1416. ./GPU/Debugger/Playback.cpp: In member function ‘bool GPURecord::BufMapping::ExtraInfo::Alloc(u32, u32, const std::vector<unsigned char>&)’:
  1417. ./GPU/Debugger/Playback.cpp:243:19: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  1418. 243 | if (psp_pointer_ == -1) {
  1419. | ~~~~~~~~~~~~~^~~~~
  1420. ./GPU/Debugger/Playback.cpp: In member function ‘bool GPURecord::DumpExecute::SubmitCmds(const void*, u32)’:
  1421. ./GPU/Debugger/Playback.cpp:344:19: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  1422. 344 | if (execListBuf == -1) {
  1423. | ~~~~~~~~~~~~^~~~~
  1424. In function ‘void GPURecord::EmitTextureData(int, u32)’,
  1425. inlined from ‘void GPURecord::FlushPrimState(int)’ at ./GPU/Debugger/Record.cpp:397:19:
  1426. ./GPU/Debugger/Record.cpp:354:9: warning: ‘void* memcpy(void*, const void*, size_t)’ specified size 4294967280 exceeds maximum object size 2147483647 [-Wstringop-overflow=]
  1427. 354 | memcpy(&framebufData[sizeof(framebuf)], p, bytes);
  1428. | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1429. In function ‘Path GPURecord::WriteRecording()’,
  1430. inlined from ‘void GPURecord::FinishRecording()’ at ./GPU/Debugger/Record.cpp:505:33:
  1431. ./GPU/Debugger/Record.cpp:178:9: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 8 bytes from a string of the same length [-Wstringop-truncation]
  1432. 178 | strncpy(header.magic, HEADER_MAGIC, sizeof(header.magic));
  1433. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1434. ./GPU/Debugger/Record.cpp:180:9: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 9 equals destination size [-Wstringop-truncation]
  1435. 180 | strncpy(header.gameID, g_paramSFO.GetDiscID().c_str(), sizeof(header.gameID));
  1436. | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1437. In file included from ./GPU/Vulkan/GPU_Vulkan.h:26,
  1438. from ./GPU/GPU.cpp:30:
  1439. ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
  1440. ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
  1441. 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
  1442. | ^~~~~~~~
  1443. ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
  1444. 242 | VulkanDescSetPool descPool;
  1445. | ^~~~~~~~
  1446. ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
  1447. 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
  1448. | ^~~~~~~~~
  1449. ./GPU/Software/Clipper.cpp: In function ‘void Clipper::ProcessTriangle(const VertexData&, const VertexData&, const VertexData&, const VertexData&, BinManager&)’:
  1450. ./GPU/Software/Clipper.cpp:296:24: warning: array subscript 6 is above array bounds of ‘int [6]’ [-Warray-bounds]
  1451. 296 | indices[numIndices++] = inlist[0];
  1452. | ~~~~~~~~~~~~~~~~~~~~^
  1453. ./GPU/Software/Clipper.cpp:269:6: note: while referencing ‘indices’
  1454. 269 | int indices[NUM_INDICES] = { 0, 1, 2, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG };
  1455. | ^~~~~~~
  1456. ./GPU/Software/Clipper.cpp:297:24: warning: array subscript 7 is above array bounds of ‘int [6]’ [-Warray-bounds]
  1457. 297 | indices[numIndices++] = inlist[j - 1];
  1458. | ~~~~~~~~~~~~~~~~~~~~^
  1459. ./GPU/Software/Clipper.cpp:269:6: note: while referencing ‘indices’
  1460. 269 | int indices[NUM_INDICES] = { 0, 1, 2, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG };
  1461. | ^~~~~~~
  1462. ./GPU/Software/Clipper.cpp:298:24: warning: array subscript 8 is above array bounds of ‘int [6]’ [-Warray-bounds]
  1463. 298 | indices[numIndices++] = inlist[j];
  1464. | ~~~~~~~~~~~~~~~~~~~~^
  1465. ./GPU/Software/Clipper.cpp:269:6: note: while referencing ‘indices’
  1466. 269 | int indices[NUM_INDICES] = { 0, 1, 2, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG };
  1467. | ^~~~~~~
  1468. ./GPU/Software/BinManager.cpp: In member function ‘void BinManager::Flush(const char*)’:
  1469. ./GPU/Software/BinManager.cpp:474:35: warning: ‘st’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  1470. 474 | flushReasonTimes_[reason] += et - st;
  1471. | ~~~^~~~
  1472. ./GPU/Software/Rasterizer.cpp: In function ‘void Rasterizer::DrawPoint(const VertexData&, const BinCoords&, const Rasterizer::RasterizerState&)’:
  1473. ./GPU/Software/Rasterizer.cpp:1039:8: warning: unused variable ‘samplerID’ [-Wunused-variable]
  1474. 1039 | auto &samplerID = state.samplerID;
  1475. | ^~~~~~~~~
  1476. ./GPU/Software/Rasterizer.cpp: In function ‘void Rasterizer::ClearRectangle(const VertexData&, const VertexData&, const BinCoords&, const Rasterizer::RasterizerState&)’:
  1477. ./GPU/Software/Rasterizer.cpp:1093:8: warning: unused variable ‘samplerID’ [-Wunused-variable]
  1478. 1093 | auto &samplerID = state.samplerID;
  1479. | ^~~~~~~~~
  1480. ./GPU/Software/Rasterizer.cpp: In function ‘void Rasterizer::DrawLine(const VertexData&, const VertexData&, const BinCoords&, const Rasterizer::RasterizerState&)’:
  1481. ./GPU/Software/Rasterizer.cpp:1291:8: warning: unused variable ‘samplerID’ [-Wunused-variable]
  1482. 1291 | auto &samplerID = state.samplerID;
  1483. | ^~~~~~~~~
  1484. ./GPU/Software/RasterizerRectangle.cpp: In function ‘void Rasterizer::DrawSprite(const VertexData&, const VertexData&, const BinCoords&, const Rasterizer::RasterizerState&)’:
  1485. ./GPU/Software/RasterizerRectangle.cpp:84:18: warning: unused variable ‘texfmt’ [-Wunused-variable]
  1486. 84 | GETextureFormat texfmt = state.samplerID.TexFmt();
  1487. | ^~~~~~
  1488. ./GPU/Software/Rasterizer.cpp: In function ‘void Rasterizer::ClearRectangle(const VertexData&, const VertexData&, const BinCoords&, const Rasterizer::RasterizerState&)’:
  1489. ./GPU/Software/Rasterizer.cpp:1246:16: warning: ‘new_color16’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  1490. 1246 | const u16 c = (old_color & keepOldMask) | (new_color16 & ~keepOldMask);
  1491. | ^
  1492. In file included from ./GPU/Software/DrawPixel.h:25,
  1493. from ./GPU/Software/Rasterizer.h:20,
  1494. from ./GPU/Software/Sampler.cpp:28:
  1495. ./GPU/Math3D.h: In function ‘Rasterizer::Vec4IntResult Sampler::GetTextureFunctionOutput(Rasterizer::Vec4IntArg, Rasterizer::Vec4IntArg, const SamplerID&)’:
  1496. ./GPU/Math3D.h:592:80: warning: ‘out_a’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  1497. 592 | Vec4(const Vec3<T>& _xyz, const T& _w) : x(_xyz.x), y(_xyz.y), z(_xyz.z), w(_w) {}
  1498. | ^
  1499. ./GPU/Software/Sampler.cpp:435:6: note: ‘out_a’ was declared here
  1500. 435 | int out_a;
  1501. | ^~~~~
  1502. In file included from ./UI/ControlMappingScreen.h:26,
  1503. from ./UI/NativeApp.cpp:106:
  1504. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1505. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1506. 230 | float *value_;
  1507. | ^~~~~~
  1508. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1509. 229 | float originalValue_;
  1510. | ^~~~~~~~~~~~~~
  1511. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1512. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1513. | ^~~~~~~~~~~~~~~~~~~~~~
  1514. ./UI/NativeApp.cpp: In function ‘void NativeInit(int, const char**, const char*, const char*, const char*)’:
  1515. ./UI/NativeApp.cpp:611:14: warning: unused variable ‘logman’ [-Wunused-variable]
  1516. 611 | LogManager *logman = LogManager::GetInstance();
  1517. | ^~~~~~
  1518. In file included from ./UI/NativeApp.cpp:90:
  1519. ./Core/SaveState.h: At global scope:
  1520. ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
  1521. 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
  1522. | ^~~~~~~~~~~~~~
  1523. ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  1524. 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
  1525. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  1526. ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1527. 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
  1528. | ^~~~~~~~~~~~~~~~~~~~
  1529. ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  1530. 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
  1531. | ^~~~~~~~~~~~~~~~~~~~
  1532. ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1533. 35 | static const char *STATE_EXTENSION = "ppst";
  1534. | ^~~~~~~~~~~~~~~
  1535. In file included from ./UI/ChatScreen.h:4,
  1536. from ./UI/ChatScreen.cpp:16:
  1537. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1538. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1539. 230 | float *value_;
  1540. | ^~~~~~
  1541. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1542. 229 | float originalValue_;
  1543. | ^~~~~~~~~~~~~~
  1544. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1545. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1546. | ^~~~~~~~~~~~~~~~~~~~~~
  1547. In file included from ./UI/MiscScreens.h:25,
  1548. from ./UI/DevScreens.cpp:64:
  1549. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1550. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1551. 230 | float *value_;
  1552. | ^~~~~~
  1553. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1554. 229 | float originalValue_;
  1555. | ^~~~~~~~~~~~~~
  1556. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1557. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1558. | ^~~~~~~~~~~~~~~~~~~~~~
  1559. ./UI/DevScreens.cpp: In member function ‘virtual void SystemInfoScreen::CreateViews()’:
  1560. ./UI/DevScreens.cpp:535:7: warning: unused variable ‘highp_float_min’ [-Wunused-variable]
  1561. 535 | int highp_float_min = gl_extensions.range[1][2][0];
  1562. | ^~~~~~~~~~~~~~~
  1563. In file included from ./UI/MiscScreens.h:25,
  1564. from ./UI/DisplayLayoutScreen.h:22,
  1565. from ./UI/DisplayLayoutScreen.cpp:29:
  1566. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1567. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1568. 230 | float *value_;
  1569. | ^~~~~~
  1570. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1571. 229 | float originalValue_;
  1572. | ^~~~~~~~~~~~~~
  1573. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1574. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1575. | ^~~~~~~~~~~~~~~~~~~~~~
  1576. In file included from ./UI/EmuScreen.h:27,
  1577. from ./UI/GamepadEmu.h:26,
  1578. from ./UI/EmuScreen.cpp:77:
  1579. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1580. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1581. 230 | float *value_;
  1582. | ^~~~~~
  1583. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1584. 229 | float originalValue_;
  1585. | ^~~~~~~~~~~~~~
  1586. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1587. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1588. | ^~~~~~~~~~~~~~~~~~~~~~
  1589. In file included from ./UI/EmuScreen.cpp:68:
  1590. ./Core/SaveState.h: At global scope:
  1591. ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
  1592. 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
  1593. | ^~~~~~~~~~~~~~
  1594. ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  1595. 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
  1596. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  1597. ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1598. 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
  1599. | ^~~~~~~~~~~~~~~~~~~~
  1600. ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1601. 35 | static const char *STATE_EXTENSION = "ppst";
  1602. | ^~~~~~~~~~~~~~~
  1603. In file included from ./UI/GameInfoCache.cpp:36:
  1604. ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
  1605. 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
  1606. | ^~~~~~~~~~~~~~
  1607. ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  1608. 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
  1609. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  1610. ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1611. 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
  1612. | ^~~~~~~~~~~~~~~~~~~~
  1613. ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  1614. 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
  1615. | ^~~~~~~~~~~~~~~~~~~~
  1616. ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1617. 35 | static const char *STATE_EXTENSION = "ppst";
  1618. | ^~~~~~~~~~~~~~~
  1619. In file included from ./UI/EmuScreen.h:27,
  1620. from ./UI/MainScreen.cpp:49:
  1621. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1622. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1623. 230 | float *value_;
  1624. | ^~~~~~
  1625. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1626. 229 | float originalValue_;
  1627. | ^~~~~~~~~~~~~~
  1628. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1629. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1630. | ^~~~~~~~~~~~~~~~~~~~~~
  1631. In file included from ./UI/ControlMappingScreen.h:26,
  1632. from ./UI/MiscScreens.cpp:48:
  1633. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1634. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1635. 230 | float *value_;
  1636. | ^~~~~~
  1637. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1638. 229 | float originalValue_;
  1639. | ^~~~~~~~~~~~~~
  1640. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1641. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1642. | ^~~~~~~~~~~~~~~~~~~~~~
  1643. ./UI/MiscScreens.cpp: In member function ‘std::shared_ptr<GameInfo> RecentGamesAnimation::GetInfo(UIContext&, int)’:
  1644. ./UI/MiscScreens.cpp:254:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘unsigned int’} [-Wsign-compare]
  1645. 254 | if (index >= recentIsos.size())
  1646. | ~~~~~~^~~~~~~~~~~~~~~~~~~~
  1647. In file included from ./UI/PauseScreen.cpp:25:
  1648. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1649. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1650. 230 | float *value_;
  1651. | ^~~~~~
  1652. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1653. 229 | float originalValue_;
  1654. | ^~~~~~~~~~~~~~
  1655. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1656. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1657. | ^~~~~~~~~~~~~~~~~~~~~~
  1658. In file included from ./UI/CwCheatScreen.h:22,
  1659. from ./UI/GameScreen.cpp:38:
  1660. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1661. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1662. 230 | float *value_;
  1663. | ^~~~~~
  1664. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1665. 229 | float originalValue_;
  1666. | ^~~~~~~~~~~~~~
  1667. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1668. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1669. | ^~~~~~~~~~~~~~~~~~~~~~
  1670. ./UI/PauseScreen.cpp: In constructor ‘ScreenshotViewScreen::ScreenshotViewScreen(const Path&, std::string, int, std::shared_ptr<I18NCategory>, Path)’:
  1671. ./UI/PauseScreen.cpp:218:6: warning: ‘ScreenshotViewScreen::slot_’ will be initialized after [-Wreorder]
  1672. 218 | int slot_;
  1673. | ^~~~~
  1674. ./UI/PauseScreen.cpp:217:7: warning: ‘Path ScreenshotViewScreen::gamePath_’ [-Wreorder]
  1675. 217 | Path gamePath_;
  1676. | ^~~~~~~~~
  1677. ./UI/PauseScreen.cpp:168:2: warning: when initialized here [-Wreorder]
  1678. 168 | ScreenshotViewScreen(const Path &filename, std::string title, int slot, std::shared_ptr<I18NCategory> i18n, Path gamePath)
  1679. | ^~~~~~~~~~~~~~~~~~~~
  1680. In file included from ./UI/PauseScreen.cpp:33:
  1681. ./Core/SaveState.h: At global scope:
  1682. ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
  1683. 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
  1684. | ^~~~~~~~~~~~~~
  1685. ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  1686. 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
  1687. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  1688. ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1689. 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
  1690. | ^~~~~~~~~~~~~~~~~~~~
  1691. ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1692. 35 | static const char *STATE_EXTENSION = "ppst";
  1693. | ^~~~~~~~~~~~~~~
  1694. In file included from ./UI/MiscScreens.h:25,
  1695. from ./UI/GPUDriverTestScreen.h:9,
  1696. from ./UI/GPUDriverTestScreen.cpp:1:
  1697. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1698. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1699. 230 | float *value_;
  1700. | ^~~~~~
  1701. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1702. 229 | float originalValue_;
  1703. | ^~~~~~~~~~~~~~
  1704. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1705. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1706. | ^~~~~~~~~~~~~~~~~~~~~~
  1707. In file included from ./UI/EmuScreen.h:27,
  1708. from ./UI/GameSettingsScreen.cpp:38:
  1709. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1710. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1711. 230 | float *value_;
  1712. | ^~~~~~
  1713. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1714. 229 | float originalValue_;
  1715. | ^~~~~~~~~~~~~~
  1716. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1717. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1718. | ^~~~~~~~~~~~~~~~~~~~~~
  1719. ./UI/GameSettingsScreen.cpp: In member function ‘virtual void GameSettingsScreen::CreateViews()’:
  1720. ./UI/GameSettingsScreen.cpp:341:22: warning: unused variable ‘analogSpeed’ [-Wunused-variable]
  1721. 341 | PopupSliderChoice *analogSpeed = graphicsSettings->Add(new PopupSliderChoice(&iAlternateSpeedPercentAnalog_, 1, 1000, gr->T("Analog Alternative Speed", "Analog alternative speed (in %)"), 5, screenManager(), gr->T("%")));
  1722. | ^~~~~~~~~~~
  1723. ./UI/GameSettingsScreen.cpp:348:69: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  1724. 348 | for (int i = 0; i < (int)g_Config.vPostShaderNames.size() + 1 && i < ARRAY_SIZE(shaderNames_); ++i) {
  1725. ./UI/GameSettingsScreen.cpp:350:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘unsigned int’} [-Wsign-compare]
  1726. 350 | shaderNames_[i] = i == g_Config.vPostShaderNames.size() ? "Off" : g_Config.vPostShaderNames[i];
  1727. | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1728. ./UI/GameSettingsScreen.cpp:366:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘unsigned int’} [-Wsign-compare]
  1729. 366 | if (i == g_Config.vPostShaderNames.size())
  1730. | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1731. ./UI/GameSettingsScreen.cpp:1016:8: warning: unused variable ‘ioTimingMethod’ [-Wunused-variable]
  1732. 1016 | View *ioTimingMethod = systemSettings->Add(new PopupMultiChoice(&g_Config.iIOTimingMethod, sy->T("IO timing method"), ioTimingMethods, 0, ARRAY_SIZE(ioTimingMethods), sy->GetName(), screenManager()));
  1733. | ^~~~~~~~~~~~~~
  1734. ./UI/GameSettingsScreen.cpp: In member function ‘virtual void GestureMappingScreen::CreateViews()’:
  1735. ./UI/GameSettingsScreen.cpp:2232:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  1736. 2232 | for (int i = 1; i < ARRAY_SIZE(gestureButton); ++i) {
  1737. In file included from ./UI/MiscScreens.h:25,
  1738. from ./UI/TiltAnalogSettingsScreen.h:21,
  1739. from ./UI/TiltAnalogSettingsScreen.cpp:18:
  1740. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1741. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1742. 230 | float *value_;
  1743. | ^~~~~~
  1744. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1745. 229 | float originalValue_;
  1746. | ^~~~~~~~~~~~~~
  1747. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1748. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1749. | ^~~~~~~~~~~~~~~~~~~~~~
  1750. ./UI/TiltEventProcessor.cpp: In function ‘void TiltEventProcessor::GenerateDPadEvent(const TiltEventProcessor::Tilt&)’:
  1751. ./UI/TiltEventProcessor.cpp:104:19: warning: unused variable ‘dir’ [-Wunused-variable]
  1752. 104 | static const int dir[4] = {CTRL_RIGHT, CTRL_DOWN, CTRL_LEFT, CTRL_UP};
  1753. | ^~~
  1754. In file included from ./UI/EmuScreen.h:27,
  1755. from ./UI/GamepadEmu.h:26,
  1756. from ./UI/TouchControlLayoutScreen.cpp:31:
  1757. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1758. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1759. 230 | float *value_;
  1760. | ^~~~~~
  1761. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1762. 229 | float originalValue_;
  1763. | ^~~~~~~~~~~~~~
  1764. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1765. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1766. | ^~~~~~~~~~~~~~~~~~~~~~
  1767. ./UI/TouchControlLayoutScreen.cpp: In constructor ‘DragDropButton::DragDropButton(ConfigTouchPos&, const char*, ImageID, ImageID, const Bounds&)’:
  1768. ./UI/TouchControlLayoutScreen.cpp:91:14: warning: ‘DragDropButton::y_’ will be initialized after [-Wreorder]
  1769. 91 | float &x_, &y_;
  1770. | ^~
  1771. ./UI/TouchControlLayoutScreen.cpp:90:9: warning: ‘float& DragDropButton::theScale_’ [-Wreorder]
  1772. 90 | float &theScale_;
  1773. | ^~~~~~~~~
  1774. ./UI/TouchControlLayoutScreen.cpp:43:2: warning: when initialized here [-Wreorder]
  1775. 43 | DragDropButton(ConfigTouchPos &pos, const char *key, ImageID bgImg, ImageID img, const Bounds &screenBounds)
  1776. | ^~~~~~~~~~~~~~
  1777. ./UI/TouchControlLayoutScreen.cpp:90:9: warning: ‘DragDropButton::theScale_’ will be initialized after [-Wreorder]
  1778. 90 | float &theScale_;
  1779. | ^~~~~~~~~
  1780. ./UI/TouchControlLayoutScreen.cpp:89:16: warning: ‘const Bounds& DragDropButton::screenBounds_’ [-Wreorder]
  1781. 89 | const Bounds &screenBounds_;
  1782. | ^~~~~~~~~~~~~
  1783. ./UI/TouchControlLayoutScreen.cpp:43:2: warning: when initialized here [-Wreorder]
  1784. 43 | DragDropButton(ConfigTouchPos &pos, const char *key, ImageID bgImg, ImageID img, const Bounds &screenBounds)
  1785. | ^~~~~~~~~~~~~~
  1786. ./UI/TouchControlLayoutScreen.cpp: In member function ‘virtual void PSPStickDragDrop::Draw(UIContext&)’:
  1787. ./UI/TouchControlLayoutScreen.cpp:295:12: warning: unused variable ‘downBg’ [-Wunused-variable]
  1788. 295 | uint32_t downBg = colorAlpha(0x00FFFFFF, GetButtonOpacity() * 0.5f);
  1789. | ^~~~~~
  1790. ./UI/TouchControlLayoutScreen.cpp: In member function ‘void ControlLayoutView::CreateViews()’:
  1791. ./UI/TouchControlLayoutScreen.cpp:475:10: warning: variable ‘roundImage’ set but not used [-Wunused-but-set-variable]
  1792. 475 | ImageID roundImage = g_Config.iTouchButtonStyle ? ImageID("I_ROUND_LINE") : ImageID("I_ROUND");
  1793. | ^~~~~~~~~~
  1794. In file included from ./UI/MiscScreens.h:25,
  1795. from ./UI/TouchControlVisibilityScreen.h:21,
  1796. from ./UI/TouchControlVisibilityScreen.cpp:20:
  1797. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1798. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1799. 230 | float *value_;
  1800. | ^~~~~~
  1801. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1802. 229 | float originalValue_;
  1803. | ^~~~~~~~~~~~~~
  1804. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1805. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1806. | ^~~~~~~~~~~~~~~~~~~~~~
  1807. In file included from ./UI/EmuScreen.h:27,
  1808. from ./UI/GamepadEmu.h:26,
  1809. from ./UI/GamepadEmu.cpp:35:
  1810. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1811. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1812. 230 | float *value_;
  1813. | ^~~~~~
  1814. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1815. 229 | float originalValue_;
  1816. | ^~~~~~~~~~~~~~
  1817. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1818. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1819. | ^~~~~~~~~~~~~~~~~~~~~~
  1820. ./UI/GamepadEmu.cpp: In member function ‘virtual void ComboKey::Touch(const TouchInput&)’:
  1821. ./UI/GamepadEmu.cpp:206:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  1822. 206 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++) {
  1823. ./UI/GamepadEmu.cpp:215:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  1824. 215 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++) {
  1825. ./UI/GamepadEmu.cpp: In member function ‘virtual void ComboKey::Update()’:
  1826. ./UI/GamepadEmu.cpp:236:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  1827. 236 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++) {
  1828. ./UI/GamepadEmu.cpp:242:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  1829. 242 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++) {
  1830. In file included from ./UI/ControlMappingScreen.h:26,
  1831. from ./UI/ControlMappingScreen.cpp:45:
  1832. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1833. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1834. 230 | float *value_;
  1835. | ^~~~~~
  1836. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1837. 229 | float originalValue_;
  1838. | ^~~~~~~~~~~~~~
  1839. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1840. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1841. | ^~~~~~~~~~~~~~~~~~~~~~
  1842. In file included from ./UI/RemoteISOScreen.h:23,
  1843. from ./UI/RemoteISOScreen.cpp:44:
  1844. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1845. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1846. 230 | float *value_;
  1847. | ^~~~~~
  1848. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1849. 229 | float originalValue_;
  1850. | ^~~~~~~~~~~~~~
  1851. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1852. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1853. | ^~~~~~~~~~~~~~~~~~~~~~
  1854. In file included from ./UI/PauseScreen.h:24,
  1855. from ./UI/ReportScreen.cpp:24:
  1856. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1857. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1858. 230 | float *value_;
  1859. | ^~~~~~
  1860. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1861. 229 | float originalValue_;
  1862. | ^~~~~~~~~~~~~~
  1863. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1864. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1865. | ^~~~~~~~~~~~~~~~~~~~~~
  1866. In file included from ./UI/SavedataScreen.h:25,
  1867. from ./UI/SavedataScreen.cpp:32:
  1868. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1869. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1870. 230 | float *value_;
  1871. | ^~~~~~
  1872. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1873. 229 | float originalValue_;
  1874. | ^~~~~~~~~~~~~~
  1875. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1876. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1877. | ^~~~~~~~~~~~~~~~~~~~~~
  1878. In file included from ./UI/SavedataScreen.cpp:43:
  1879. ./Core/SaveState.h: At global scope:
  1880. ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
  1881. 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
  1882. | ^~~~~~~~~~~~~~
  1883. ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  1884. 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
  1885. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  1886. ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1887. 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
  1888. | ^~~~~~~~~~~~~~~~~~~~
  1889. ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
  1890. 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
  1891. | ^~~~~~~~~~~~~~~~~~~~
  1892. ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
  1893. 35 | static const char *STATE_EXTENSION = "ppst";
  1894. | ^~~~~~~~~~~~~~~
  1895. In file included from ./UI/EmuScreen.h:27,
  1896. from ./UI/Store.cpp:32:
  1897. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1898. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1899. 230 | float *value_;
  1900. | ^~~~~~
  1901. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1902. 229 | float originalValue_;
  1903. | ^~~~~~~~~~~~~~
  1904. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1905. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1906. | ^~~~~~~~~~~~~~~~~~~~~~
  1907. In file included from ./UI/CwCheatScreen.h:22,
  1908. from ./UI/CwCheatScreen.cpp:33:
  1909. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1910. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1911. 230 | float *value_;
  1912. | ^~~~~~
  1913. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1914. 229 | float originalValue_;
  1915. | ^~~~~~~~~~~~~~
  1916. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1917. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1918. | ^~~~~~~~~~~~~~~~~~~~~~
  1919. In file included from ./UI/InstallZipScreen.h:23,
  1920. from ./UI/InstallZipScreen.cpp:25:
  1921. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1922. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1923. 230 | float *value_;
  1924. | ^~~~~~
  1925. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1926. 229 | float originalValue_;
  1927. | ^~~~~~~~~~~~~~
  1928. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1929. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1930. | ^~~~~~~~~~~~~~~~~~~~~~
  1931. ./UI/InstallZipScreen.cpp: In member function ‘virtual void InstallZipScreen::CreateViews()’:
  1932. ./UI/InstallZipScreen.cpp:36:7: warning: unused variable ‘success’ [-Wunused-variable]
  1933. 36 | bool success = File::GetFileInfo(zipPath_, &fileInfo);
  1934. | ^~~~~~~
  1935. In file included from ./UI/MemStickScreen.h:27,
  1936. from ./UI/MemStickScreen.cpp:46:
  1937. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1938. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1939. 230 | float *value_;
  1940. | ^~~~~~
  1941. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1942. 229 | float originalValue_;
  1943. | ^~~~~~~~~~~~~~
  1944. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1945. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1946. | ^~~~~~~~~~~~~~~~~~~~~~
  1947. ./UI/MemStickScreen.cpp: In member function ‘virtual void MemStickScreen::sendMessage(const char*, const char*)’:
  1948. ./UI/MemStickScreen.cpp:469:9: warning: unused variable ‘existingFiles’ [-Wunused-variable]
  1949. 469 | bool existingFiles = FolderSeemsToBeUsed(pendingMemStickFolder);
  1950. | ^~~~~~~~~~~~~
  1951. In file included from ./UI/MiscScreens.h:25,
  1952. from ./UI/ComboKeyMappingScreen.h:20,
  1953. from ./UI/ComboKeyMappingScreen.cpp:33:
  1954. ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
  1955. ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
  1956. 230 | float *value_;
  1957. | ^~~~~~
  1958. ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
  1959. 229 | float originalValue_;
  1960. | ^~~~~~~~~~~~~~
  1961. ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
  1962. 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
  1963. | ^~~~~~~~~~~~~~~~~~~~~~
  1964. ./UI/ComboKeyMappingScreen.cpp: In member function ‘virtual void ButtonShapeScreen::CreatePopupContents(UI::ViewGroup*)’:
  1965. ./UI/ComboKeyMappingScreen.cpp:46:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  1966. 46 | for (int i = 0; i < ARRAY_SIZE(comboKeyShapes); ++i) {
  1967. ./UI/ComboKeyMappingScreen.cpp: In member function ‘virtual void ButtonIconScreen::CreatePopupContents(UI::ViewGroup*)’:
  1968. ./UI/ComboKeyMappingScreen.cpp:74:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  1969. 74 | for (int i = 0; i < ARRAY_SIZE(comboKeyImages); ++i) {
  1970. ./UI/ComboKeyMappingScreen.cpp: In constructor ‘ButtonPreview::ButtonPreview(ImageID, ImageID, float, bool, float, int, int)’:
  1971. ./UI/ComboKeyMappingScreen.cpp:113:10: warning: ‘ButtonPreview::img_’ will be initialized after [-Wreorder]
  1972. 113 | ImageID img_;
  1973. | ^~~~
  1974. ./UI/ComboKeyMappingScreen.cpp:109:8: warning: ‘float ButtonPreview::rotI_’ [-Wreorder]
  1975. 109 | float rotI_;
  1976. | ^~~~~
  1977. ./UI/ComboKeyMappingScreen.cpp:93:2: warning: when initialized here [-Wreorder]
  1978. 93 | ButtonPreview(ImageID bgImg, ImageID img, float rotationIcon, bool flipShape, float rotationShape, int x, int y)
  1979. | ^~~~~~~~~~~~~
  1980. ./UI/ComboKeyMappingScreen.cpp:111:7: warning: ‘ButtonPreview::flipS_’ will be initialized after [-Wreorder]
  1981. 111 | bool flipS_;
  1982. | ^~~~~~
  1983. ./UI/ComboKeyMappingScreen.cpp:110:8: warning: ‘float ButtonPreview::rotS_’ [-Wreorder]
  1984. 110 | float rotS_;
  1985. | ^~~~~
  1986. ./UI/ComboKeyMappingScreen.cpp:93:2: warning: when initialized here [-Wreorder]
  1987. 93 | ButtonPreview(ImageID bgImg, ImageID img, float rotationIcon, bool flipShape, float rotationShape, int x, int y)
  1988. | ^~~~~~~~~~~~~
  1989. ./UI/ComboKeyMappingScreen.cpp:110:8: warning: ‘ButtonPreview::rotS_’ will be initialized after [-Wreorder]
  1990. 110 | float rotS_;
  1991. | ^~~~~
  1992. ./UI/ComboKeyMappingScreen.cpp:107:6: warning: ‘int ButtonPreview::x_’ [-Wreorder]
  1993. 107 | int x_;
  1994. | ^~
  1995. ./UI/ComboKeyMappingScreen.cpp:93:2: warning: when initialized here [-Wreorder]
  1996. 93 | ButtonPreview(ImageID bgImg, ImageID img, float rotationIcon, bool flipShape, float rotationShape, int x, int y)
  1997. | ^~~~~~~~~~~~~
  1998. ./UI/ComboKeyMappingScreen.cpp: In member function ‘virtual void ComboKeyScreen::CreateViews()’:
  1999. ./UI/ComboKeyMappingScreen.cpp:135:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  2000. 135 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
  2001. ./UI/ComboKeyMappingScreen.cpp:141:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  2002. 141 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
  2003. ./UI/ComboKeyMappingScreen.cpp:147:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  2004. 147 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
  2005. ./UI/ComboKeyMappingScreen.cpp:153:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  2006. 153 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
  2007. ./UI/ComboKeyMappingScreen.cpp:159:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  2008. 159 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
  2009. ./UI/ComboKeyMappingScreen.cpp:165:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  2010. 165 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
  2011. ./UI/ComboKeyMappingScreen.cpp:171:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  2012. 171 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
  2013. ./UI/ComboKeyMappingScreen.cpp:177:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  2014. 177 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
  2015. ./UI/ComboKeyMappingScreen.cpp:183:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  2016. 183 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
  2017. ./UI/ComboKeyMappingScreen.cpp:189:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  2018. 189 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
  2019. ./UI/ComboKeyMappingScreen.cpp:246:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  2020. 246 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); ++i) {
  2021.  
Add Comment
Please, Sign In to add comment