Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List of warnings in PPSSPP with -Wall.
- Suitable for e.g.
- vim -q warnings.txt
- from top-level source directory.
- Warnings breakdown:
- 187 -Wunused-variable
- 126 -Wreorder
- 92 -Wsign-compare
- 21 -Wunknown-pragmas
- 20 -Wstringop-truncation
- 16 -Wunused-but-set-variable
- 16 -Wmaybe-uninitialized
- 9 -Wmisleading-indentation
- 7 -Wunused-function
- 6 -Wclass-memaccess
- 3 -Warray-bounds
- 2 -Wunused-const-variable=
- 2 -Wsizeof-pointer-div
- 2 -Wrestrict
- 1 -Wswitch
- 1 -Wstringop-overflow=
- 1 -Wsizeof-pointer-memaccess
- 1 -Wparentheses
- 1 -Wcpp
- In file included from ./ext/vma/vk_mem_alloc.cpp:15:
- ./ext/vma/vk_mem_alloc.h: In member function ‘virtual void VmaBlockMetadata_Generic::CalcAllocationStatInfo(VmaStatInfo&) const’:
- ./ext/vma/vk_mem_alloc.h:7994:20: warning: unused variable ‘rangeCount’ [-Wunused-variable]
- 7994 | const uint32_t rangeCount = (uint32_t)m_Suballocations.size();
- | ^~~~~~~~~~
- ./ext/vma/vk_mem_alloc.h: In member function ‘virtual void VmaBlockMetadata_Linear::Alloc(const VmaAllocationRequest&, VmaSuballocationType, void*)’:
- ./ext/vma/vk_mem_alloc.h:10379:38: warning: unused variable ‘suballocations1st’ [-Wunused-variable]
- 10379 | SuballocationVectorType& suballocations1st = AccessSuballocations1st();
- | ^~~~~~~~~~~~~~~~~
- ./ext/vma/vk_mem_alloc.h: In member function ‘void VmaBlockMetadata_Buddy::DeleteNodeChildren(VmaBlockMetadata_Buddy::Node*)’:
- ./ext/vma/vk_mem_alloc.h:11002:38: warning: unused variable ‘allocationCallbacks’ [-Wunused-variable]
- 11002 | const VkAllocationCallbacks* allocationCallbacks = GetAllocationCallbacks();
- | ^~~~~~~~~~~~~~~~~~~
- ./ext/vma/vk_mem_alloc.h: In member function ‘VkResult VmaBlockVector::AllocatePage(uint32_t, VkDeviceSize, VkDeviceSize, const VmaAllocationCreateInfo&, VmaSuballocationType, VmaAllocation_T**)’:
- ./ext/vma/vk_mem_alloc.h:12022:34: warning: unused variable ‘res’ [-Wunused-variable]
- 12022 | VkResult res = pBestRequestBlock->WriteMagicValueAroundAllocation(m_hAllocator, bestRequest.offset, bestRequest.size);
- | ^~~
- ./ext/vma/vk_mem_alloc.h: In member function ‘void VmaBlockVector::Free(VmaAllocation)’:
- ./ext/vma/vk_mem_alloc.h:12068:22: warning: unused variable ‘res’ [-Wunused-variable]
- 12068 | VkResult res = pBlock->ValidateMagicValueAroundAllocation(m_hAllocator, hAllocation->GetOffset(), hAllocation->GetSize());
- | ^~~
- ./ext/vma/vk_mem_alloc.h: In member function ‘VkResult VmaBlockVector::AllocateFromBlock(VmaDeviceMemoryBlock*, uint32_t, VkDeviceSize, VkDeviceSize, VmaAllocationCreateFlags, void*, VmaSuballocationType, uint32_t, VmaAllocation_T**)’:
- ./ext/vma/vk_mem_alloc.h:12225:22: warning: unused variable ‘res’ [-Wunused-variable]
- 12225 | VkResult res = pBlock->WriteMagicValueAroundAllocation(m_hAllocator, currRequest.offset, currRequest.size);
- | ^~~
- ./ext/vma/vk_mem_alloc.h: In member function ‘VkResult VmaAllocator_T::AllocateVulkanMemory(const VkMemoryAllocateInfo*, VkDeviceMemory*)’:
- ./ext/vma/vk_mem_alloc.h:16109:20: warning: unused variable ‘prevDeviceMemoryCount’ [-Wunused-variable]
- 16109 | const uint64_t prevDeviceMemoryCount = deviceMemoryCountIncrement.Increment(&m_DeviceMemoryCount);
- | ^~~~~~~~~~~~~~~~~~~~~
- ./ext/libkirk/AES.c:44:28: warning: ‘const_Zero’ defined but not used [-Wunused-const-variable=]
- 44 | static const unsigned char const_Zero[16] = {
- | ^~~~~~~~~~
- ./ext/libkirk/amctrl.c: In function ‘sceNpDrmGetFixedKey’:
- ./ext/libkirk/amctrl.c:570:2: warning: ‘strncpy’ specified bound 48 equals destination size [-Wstringop-truncation]
- 570 | strncpy(strbuf, npstr, 0x30);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from ./ext/sfmt19937/SFMT.h:69,
- from ./ext/sfmt19937/SFMT.c:26:
- ./ext/sfmt19937/SFMT-params.h:7:4: warning: #warning "SFMT_MEXP is not defined. I assume MEXP is 19937." [-Wcpp]
- 7 | #warning "SFMT_MEXP is not defined. I assume MEXP is 19937."
- | ^~~~~~~
- ./ext/sfmt19937/SFMT.c:46:21: warning: ‘sse2_param_mask’ defined but not used [-Wunused-const-variable=]
- 46 | static const w128_t sse2_param_mask = {{SFMT_MSK1, SFMT_MSK2,
- | ^~~~~~~~~~~~~~~
- ./ext/armips/Archs/ARM/ArmParser.cpp: In member function ‘bool ArmParser::parseShift(Parser&, ArmOpcodeVariables&, bool)’:
- ./ext/armips/Archs/ARM/ArmParser.cpp:267:60: warning: ‘number’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 267 | vars.Shift.ShiftExpression = createConstExpression(number);
- | ^
- ./ext/armips/Commands/CDirectiveConditional.cpp: In member function ‘bool CDirectiveConditional::evaluate()’:
- ./ext/armips/Commands/CDirectiveConditional.cpp:53:19: warning: ‘value’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 53 | return value != 0;
- | ^
- ./ext/armips/Commands/CDirectiveMessage.cpp: In member function ‘virtual bool CDirectiveMessage::Validate()’:
- ./ext/armips/Commands/CDirectiveMessage.cpp:20:9: warning: enumeration value ‘Invalid’ not handled in switch [-Wswitch]
- 20 | switch (errorType)
- | ^
- In file included from ./ext/armips/Core/Expression.cpp:2:
- ./ext/armips/Core/Expression.h: In member function ‘ExpressionValue ExpressionInternal::evaluate()’:
- ./ext/armips/Core/Expression.h:50:8: warning: ‘val.ExpressionValue::<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 50 | struct ExpressionValue
- | ^~~~~~~~~~~~~~~
- ./ext/armips/Core/Expression.h: In member function ‘ExpressionValue Expression::evaluate()’:
- ./ext/armips/Core/Expression.h:50:8: warning: ‘invalid.ExpressionValue::<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 50 | struct ExpressionValue
- | ^~~~~~~~~~~~~~~
- In file included from ./ext/discord-rpc/src/rpc_connection.h:4,
- from ./ext/discord-rpc/src/discord_rpc.cpp:6:
- ./ext/discord-rpc/src/serialization.h:6: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 6 | #pragma warning(push)
- |
- ./ext/discord-rpc/src/serialization.h:8: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 8 | #pragma warning(disable : 4061) // enum is not explicitly handled by a case label
- |
- ./ext/discord-rpc/src/serialization.h:9: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 9 | #pragma warning(disable : 4365) // signed/unsigned mismatch
- |
- ./ext/discord-rpc/src/serialization.h:10: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 10 | #pragma warning(disable : 4464) // relative include path contains
- |
- ./ext/discord-rpc/src/serialization.h:11: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 11 | #pragma warning(disable : 4668) // is not defined as a preprocessor macro
- |
- ./ext/discord-rpc/src/serialization.h:12: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 12 | #pragma warning(disable : 6313) // Incorrect operator
- |
- In file included from ./ext/discord-rpc/src/rpc_connection.h:4,
- from ./ext/discord-rpc/src/discord_rpc.cpp:6:
- ./ext/discord-rpc/src/serialization.h:20: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 20 | #pragma warning(pop)
- |
- In file included from ./ext/discord-rpc/src/rpc_connection.h:4,
- from ./ext/discord-rpc/src/rpc_connection.cpp:1:
- ./ext/discord-rpc/src/serialization.h:6: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 6 | #pragma warning(push)
- |
- ./ext/discord-rpc/src/serialization.h:8: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 8 | #pragma warning(disable : 4061) // enum is not explicitly handled by a case label
- |
- ./ext/discord-rpc/src/serialization.h:9: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 9 | #pragma warning(disable : 4365) // signed/unsigned mismatch
- |
- ./ext/discord-rpc/src/serialization.h:10: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 10 | #pragma warning(disable : 4464) // relative include path contains
- |
- ./ext/discord-rpc/src/serialization.h:11: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 11 | #pragma warning(disable : 4668) // is not defined as a preprocessor macro
- |
- ./ext/discord-rpc/src/serialization.h:12: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 12 | #pragma warning(disable : 6313) // Incorrect operator
- |
- In file included from ./ext/discord-rpc/src/rpc_connection.h:4,
- from ./ext/discord-rpc/src/rpc_connection.cpp:1:
- ./ext/discord-rpc/src/serialization.h:20: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 20 | #pragma warning(pop)
- |
- In file included from ./ext/discord-rpc/src/serialization.cpp:1:
- ./ext/discord-rpc/src/serialization.h:6: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 6 | #pragma warning(push)
- |
- ./ext/discord-rpc/src/serialization.h:8: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 8 | #pragma warning(disable : 4061) // enum is not explicitly handled by a case label
- |
- ./ext/discord-rpc/src/serialization.h:9: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 9 | #pragma warning(disable : 4365) // signed/unsigned mismatch
- |
- ./ext/discord-rpc/src/serialization.h:10: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 10 | #pragma warning(disable : 4464) // relative include path contains
- |
- ./ext/discord-rpc/src/serialization.h:11: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 11 | #pragma warning(disable : 4668) // is not defined as a preprocessor macro
- |
- ./ext/discord-rpc/src/serialization.h:12: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 12 | #pragma warning(disable : 6313) // Incorrect operator
- |
- In file included from ./ext/discord-rpc/src/serialization.cpp:1:
- ./ext/discord-rpc/src/serialization.h:20: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
- 20 | #pragma warning(pop)
- |
- ./Common/x64Analyzer.cpp: In function ‘bool X86AnalyzeMOV(const unsigned char*, LSInstructionInfo&)’:
- ./Common/x64Analyzer.cpp:37:6: warning: variable ‘addressSize’ set but not used [-Wunused-but-set-variable]
- 37 | int addressSize = 8;
- | ^~~~~~~~~~~
- ./Common/x64Analyzer.cpp:41:7: warning: variable ‘hasSIBbyte’ set but not used [-Wunused-but-set-variable]
- 41 | bool hasSIBbyte = false;
- | ^~~~~~~~~~
- ./Common/x64Analyzer.cpp:42:7: warning: variable ‘hasDisplacement’ set but not used [-Wunused-but-set-variable]
- 42 | bool hasDisplacement = false;
- | ^~~~~~~~~~~~~~~
- In file included from ./ext/armips/Parser/DirectivesParser.cpp:1:
- ./ext/armips/./stdafx.h: In function ‘std::unique_ptr<CAssemblerCommand> parseDirectiveConditional(Parser&, int)’:
- ./ext/armips/./stdafx.h:41:31: warning: ‘type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 41 | return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./ext/armips/Parser/DirectivesParser.cpp:190:16: note: ‘type’ was declared here
- 190 | ConditionType type;
- | ^~~~
- ./ext/armips/Parser/Parser.cpp: In member function ‘std::unique_ptr<CAssemblerCommand> Parser::parseTemplate(const wstring&, std::initializer_list<AssemblyTemplateArgument>)’:
- ./ext/armips/Parser/Parser.cpp:192:10: warning: unused variable ‘count’ [-Wunused-variable]
- 192 | size_t count = replaceAll(fullText,arg.variableName,arg.value);
- | ^~~~~
- ./Core/Util/DisArm64.cpp: In function ‘void DataProcessingImmediate(uint32_t, uint64_t, Instruction*)’:
- ./Core/Util/DisArm64.cpp:187:7: warning: unused variable ‘N’ [-Wunused-variable]
- 187 | int N = (w >> 22) & 1;
- | ^
- ./Core/Util/DisArm64.cpp: In function ‘void BranchExceptionAndSystem(uint32_t, uint64_t, Instruction*, SymbolCallback)’:
- ./Core/Util/DisArm64.cpp:226:7: warning: unused variable ‘offset’ [-Wunused-variable]
- 226 | int offset = SignExtend19(w >> 5);
- | ^~~~~~
- ./Core/Util/DisArm64.cpp: In function ‘void LoadStore(uint32_t, uint64_t, Instruction*)’:
- ./Core/Util/DisArm64.cpp:334:9: warning: unused variable ‘S’ [-Wunused-variable]
- 334 | int S = (w >> 12) & 1;
- | ^
- ./Core/Util/DisArm64.cpp: In function ‘void DataProcessingRegister(uint32_t, uint64_t, Instruction*)’:
- ./Core/Util/DisArm64.cpp:453:8: warning: unused variable ‘S’ [-Wunused-variable]
- 453 | bool S = (w >> 29) & 1;
- | ^
- ./Core/Util/DisArm64.cpp:476:7: warning: unused variable ‘imm3’ [-Wunused-variable]
- 476 | int imm3 = (w >> 10) & 0x7;
- | ^~~~
- ./Core/Util/DisArm64.cpp: In function ‘void FPandASIMD1(uint32_t, uint64_t, Instruction*)’:
- ./Core/Util/DisArm64.cpp:632:9: warning: unused variable ‘Q’ [-Wunused-variable]
- 632 | int Q = GetQ(w);
- | ^
- ./Core/Util/DisArm64.cpp:829:9: warning: unused variable ‘U’ [-Wunused-variable]
- 829 | bool U = GetU(w);
- | ^
- ./Core/Util/DisArm64.cpp:832:9: warning: unused variable ‘M’ [-Wunused-variable]
- 832 | bool M = (w >> 20) & 1;
- | ^
- ./Core/Util/DisArm64.cpp: In function ‘void FPandASIMD2(uint32_t, uint64_t, Instruction*)’:
- ./Core/Util/DisArm64.cpp:892:9: warning: unused variable ‘e’ [-Wunused-variable]
- 892 | int e = opcode2 >> 4;
- | ^
- ./Common/Serialize/Serializer.cpp: In member function ‘PointerWrapSection PointerWrap::Section(const char*, int, int)’:
- ./Common/Serialize/Serializer.cpp:46:9: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Wstringop-truncation]
- 46 | strncpy(marker, title, sizeof(marker));
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./ext/armips/Util/FileClasses.cpp: In member function ‘wchar_t TextFile::readCharacter()’:
- ./ext/armips/Util/FileClasses.cpp:930:43: warning: ‘value’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 930 | if (value == L'\r' && recursion == false && atEnd() == false)
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
- ./Common/Data/Format/RIFF.cpp: In member function ‘bool RIFFReader::Descend(uint32_t)’:
- ./Common/Data/Format/RIFF.cpp:54:10: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
- 54 | if (id == intoId) {
- | ~~~^~~~~~~~~
- ./Common/File/FileUtil.cpp: In function ‘uint64_t File::GetFileSize(FILE*)’:
- ./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]
- 895 | if (size == -1)
- | ~~~~~^~~~~
- ./Common/GPU/ShaderTranslation.cpp: In function ‘bool ConvertToVulkanGLSL(std::string*, TranslatedShaderMetadata*, std::string, ShaderStage, std::string*)’:
- ./Common/GPU/ShaderTranslation.cpp:202:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 202 | for (int i = 0; i < ARRAY_SIZE(replacements); i++) {
- In file included from ./Common/GPU/OpenGL/GLRenderManager.h:14,
- from ./Common/GPU/OpenGL/thin3d_gl.cpp:20:
- ./Common/GPU/OpenGL/thin3d_gl.cpp: In member function ‘virtual void Draw::OpenGLContext::BindSamplerStates(int, int, Draw::SamplerState**)’:
- ./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]
- 366 | _assert_(start + count <= MAX_TEXTURE_SLOTS);
- | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
- ./Common/Log.h:153:8: note: in definition of macro ‘_assert_’
- 153 | if (!(_a_)) {\
- | ^~~
- ./Common/GPU/OpenGL/thin3d_gl.cpp: In member function ‘virtual void Draw::OpenGLContext::BindVertexBuffers(int, int, Draw::Buffer**, const int*)’:
- ./Common/GPU/OpenGL/thin3d_gl.cpp:406:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 406 | _assert_(start + count <= ARRAY_SIZE(curVBuffers_));
- ./Common/Log.h:153:8: note: in definition of macro ‘_assert_’
- 153 | if (!(_a_)) {\
- | ^~~
- ./Common/GPU/OpenGL/thin3d_gl.cpp: In member function ‘virtual void Draw::OpenGLContext::BindTextures(int, int, Draw::Texture**)’:
- ./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]
- 1120 | _assert_(start + count <= MAX_TEXTURE_SLOTS);
- | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
- ./Common/Log.h:153:8: note: in definition of macro ‘_assert_’
- 153 | if (!(_a_)) {\
- | ^~~
- ./Common/GPU/OpenGL/thin3d_gl.cpp: In member function ‘void Draw::OpenGLContext::ApplySamplers()’:
- ./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]
- 1134 | for (int i = 0; i < MAX_TEXTURE_SLOTS; i++) {
- | ~~^~~~~~~~~~~~~~~~~~~
- ./Common/GPU/OpenGL/thin3d_gl.cpp: In member function ‘bool Draw::OpenGLPipeline::LinkShaders()’:
- ./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]
- 1213 | for (int i = 0; i < MAX_TEXTURE_SLOTS; ++i) {
- | ~~^~~~~~~~~~~~~~~~~~~
- ./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]
- 1214 | if (i < queries.size()) {
- | ~~^~~~~~~~~~~~~~~~
- In file included from ./Common/GPU/OpenGL/GLRenderManager.h:14,
- from ./Common/GPU/OpenGL/thin3d_gl.cpp:20:
- ./Common/GPU/OpenGL/thin3d_gl.cpp: In member function ‘virtual void Draw::OpenGLContext::BindFramebufferAsTexture(Draw::Framebuffer*, int, Draw::FBChannel, int)’:
- ./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]
- 1418 | _assert_(binding < MAX_TEXTURE_SLOTS);
- | ~~~~~~~~^~~~~~~~~~~~~~~~~~~
- ./Common/Log.h:153:8: note: in definition of macro ‘_assert_’
- 153 | if (!(_a_)) {\
- | ^~~
- ./Common/GPU/OpenGL/GLRenderManager.cpp: In member function ‘void GLPushBuffer::Destroy(bool)’:
- ./Common/GPU/OpenGL/GLRenderManager.cpp:765:11: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 765 | if (buf_ == -1)
- | ~~~~~^~~~~
- ./Common/GPU/OpenGL/GLQueueRunner.cpp: In member function ‘void GLQueueRunner::PerformRenderPass(const GLRStep&, bool, bool)’:
- ./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]
- 802 | if (c.depth.func != depthFunc) {
- | ~~~~~~~~~~~~~^~~~~~~~~~~~
- ./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]
- 857 | if (logicOp != c.logic.logicOp) {
- | ~~~~~~~~^~~~~~~~~~~~~~~~~~
- ./Common/GPU/Vulkan/VulkanDebug.cpp: In function ‘VkBool32 VulkanDebugUtilsCallback(VkDebugUtilsMessageSeverityFlagBitsEXT, VkDebugUtilsMessageTypeFlagsEXT, const VkDebugUtilsMessengerCallbackDataEXT*, void*)’:
- ./Common/GPU/Vulkan/VulkanDebug.cpp:30:26: warning: unused variable ‘options’ [-Wunused-variable]
- 30 | const VulkanLogOptions *options = (const VulkanLogOptions *)pUserData;
- | ^~~~~~~
- ./Common/GPU/Vulkan/VulkanContext.cpp: In member function ‘VkResult VulkanContext::CreateDevice()’:
- ./Common/GPU/Vulkan/VulkanContext.cpp:737:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 737 | for (int i = 0; i < ARRAY_SIZE(frame_); i++) {
- ./Common/GPU/Vulkan/VulkanContext.cpp:641:7: warning: variable ‘found’ set but not used [-Wunused-but-set-variable]
- 641 | bool found = false;
- | ^~~~~
- ./Common/GPU/Vulkan/VulkanContext.cpp: In member function ‘void VulkanContext::PerformPendingDeletes()’:
- ./Common/GPU/Vulkan/VulkanContext.cpp:1170:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 1170 | for (int i = 0; i < ARRAY_SIZE(frame_); i++) {
- ./Common/GPU/Vulkan/VulkanContext.cpp: In member function ‘void VulkanContext::DestroyDevice()’:
- ./Common/GPU/Vulkan/VulkanContext.cpp:1187:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 1187 | for (int i = 0; i < ARRAY_SIZE(frame_); i++) {
- ./Common/GPU/Vulkan/VulkanLoader.cpp: In function ‘void* VulkanLoadLibrary(const char*)’:
- ./Common/GPU/Vulkan/VulkanLoader.cpp:278:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 278 | for (int i = 0; i < ARRAY_SIZE(so_names); i++) {
- In file included from ./Common/GPU/Vulkan/VulkanMemory.cpp:25:
- ./Common/GPU/Vulkan/VulkanMemory.h: In constructor ‘VulkanPushBuffer::VulkanPushBuffer(VulkanContext*, const char*, size_t, VkBufferUsageFlags, PushBufferType)’:
- ./Common/GPU/Vulkan/VulkanMemory.h:140:14: warning: ‘VulkanPushBuffer::name_’ will be initialized after [-Wreorder]
- 140 | const char *name_;
- | ^~~~~
- ./Common/GPU/Vulkan/VulkanMemory.h:137:9: warning: ‘size_t VulkanPushBuffer::size_’ [-Wreorder]
- 137 | size_t size_ = 0;
- | ^~~~~
- ./Common/GPU/Vulkan/VulkanMemory.cpp:29:1: warning: when initialized here [-Wreorder]
- 29 | VulkanPushBuffer::VulkanPushBuffer(VulkanContext *vulkan, const char *name, size_t size, VkBufferUsageFlags usage, PushBufferType type)
- | ^~~~~~~~~~~~~~~~
- In file included from ./Common/GPU/Vulkan/VulkanMemory.cpp:25:
- ./Common/GPU/Vulkan/VulkanMemory.h:139:21: warning: ‘VulkanPushBuffer::usage_’ will be initialized after [-Wreorder]
- 139 | VkBufferUsageFlags usage_;
- | ^~~~~~
- ./Common/GPU/Vulkan/VulkanMemory.h:132:17: warning: ‘PushBufferType VulkanPushBuffer::type_’ [-Wreorder]
- 132 | PushBufferType type_;
- | ^~~~~
- ./Common/GPU/Vulkan/VulkanMemory.cpp:29:1: warning: when initialized here [-Wreorder]
- 29 | VulkanPushBuffer::VulkanPushBuffer(VulkanContext *vulkan, const char *name, size_t size, VkBufferUsageFlags usage, PushBufferType type)
- | ^~~~~~~~~~~~~~~~
- ./Common/GPU/Vulkan/VulkanMemory.cpp: In member function ‘bool VulkanPushBuffer::AddBuffer()’:
- ./Common/GPU/Vulkan/VulkanMemory.cpp:42:11: warning: unused variable ‘device’ [-Wunused-variable]
- 42 | VkDevice device = vulkan_->GetDevice();
- | ^~~~~~
- In file included from ./Common/GPU/Vulkan/VulkanContext.h:8,
- from ./Common/GPU/Vulkan/VulkanRenderManager.h:16,
- from ./Common/GPU/Vulkan/thin3d_vulkan.cpp:27:
- ./Common/GPU/Vulkan/thin3d_vulkan.cpp: In member function ‘virtual void Draw::VKContext::BindVertexBuffers(int, int, Draw::Buffer**, const int*)’:
- ./Common/GPU/Vulkan/thin3d_vulkan.cpp:416:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 416 | _assert_(start + count <= ARRAY_SIZE(curVBuffers_));
- ./Common/Log.h:153:8: note: in definition of macro ‘_assert_’
- 153 | if (!(_a_)) {\
- | ^~~
- ./Common/GPU/Vulkan/thin3d_vulkan.cpp: In constructor ‘Draw::VKContext::VKContext(VulkanContext*, bool)’:
- ./Common/GPU/Vulkan/thin3d_vulkan.cpp:776:11: warning: unused variable ‘depthStencilFormat’ [-Wunused-variable]
- 776 | VkFormat depthStencilFormat = vulkan->GetDeviceInfo().preferredDepthStencilFormat;
- | ^~~~~~~~~~~~~~~~~~
- ./Common/GPU/Vulkan/thin3d_vulkan.cpp:848:26: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
- 848 | VkCommandPoolCreateInfo p{ VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO };
- | ^
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp: In function ‘void CreateImage(VulkanContext*, VkCommandBuffer, VKRImage&, int, int, VkFormat, VkImageLayout, bool, const char*)’:
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp:151:11: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
- 151 | VkResult res = vmaCreateImage(vulkan->Allocator(), &ici, &allocCreateInfo, &img.image, &img.alloc, &allocInfo);
- | ^~~
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp: In constructor ‘VulkanRenderManager::VulkanRenderManager(VulkanContext*)’:
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp:219:12: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
- 219 | VkResult res = vkCreateCommandPool(vulkan_->GetDevice(), &cmd_pool_info, nullptr, &frameData_[i].cmdPoolInit);
- | ^~~
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp:209:11: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
- 209 | VkResult res = vkCreateSemaphore(vulkan_->GetDevice(), &semaphoreCreateInfo, nullptr, &acquireSemaphore_);
- | ^~~
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp: In function ‘void CleanupRenderCommands(std::vector<VkRenderData>*)’:
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp:980:18: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
- 980 | if (lastOfCmd != -1) {
- | ~~~~~~~~~~^~~~~
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp:1008:17: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
- 1008 | if (lastOfCmd != -1) {
- | ~~~~~~~~~~^~~~~
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp: In member function ‘void VulkanRenderManager::CopyFramebuffer(VKRFramebuffer*, VkRect2D, VKRFramebuffer*, VkOffset2D, VkImageAspectFlags, const char*)’:
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp:1100:96: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 1100 | bool fillsDst = dst && srcRect.offset.x == 0 && srcRect.offset.y == 0 && srcRect.extent.width == dst->width && srcRect.extent.height == dst->height;
- | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp:1100:135: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 1100 | bool fillsDst = dst && srcRect.offset.x == 0 && srcRect.offset.y == 0 && srcRect.extent.width == dst->width && srcRect.extent.height == dst->height;
- | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp: In member function ‘void VulkanRenderManager::BlitFramebuffer(VKRFramebuffer*, VkRect2D, VKRFramebuffer*, VkRect2D, VkImageAspectFlags, VkFilter, const char*)’:
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp:1146:96: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 1146 | bool fillsDst = dst && dstRect.offset.x == 0 && dstRect.offset.y == 0 && dstRect.extent.width == dst->width && dstRect.extent.height == dst->height;
- | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
- ./Common/GPU/Vulkan/VulkanRenderManager.cpp:1146:135: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 1146 | bool fillsDst = dst && dstRect.offset.x == 0 && dstRect.offset.y == 0 && dstRect.extent.width == dst->width && dstRect.extent.height == dst->height;
- | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp: In member function ‘void VulkanQueueRunner::PerformRenderPass(const VKRStep&, VkCommandBuffer)’:
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1113:7: warning: unused variable ‘n’ [-Wunused-variable]
- 1113 | int n = 0;
- | ^
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1114:7: warning: unused variable ‘stage’ [-Wunused-variable]
- 1114 | int stage = 0;
- | ^~~~~
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1116:24: warning: unused variable ‘barriers’ [-Wunused-variable]
- 1116 | VkImageMemoryBarrier barriers[2]{};
- | ^~~~~~~~
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1165:13: warning: unused variable ‘lastPipeline’ [-Wunused-variable]
- 1165 | VkPipeline lastPipeline = VK_NULL_HANDLE;
- | ^~~~~~~~~~~~
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp: In member function ‘void VulkanQueueRunner::PerformBindFramebufferAsRenderTarget(const VKRStep&, VkCommandBuffer)’:
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1359:6: warning: variable ‘w’ set but not used [-Wunused-but-set-variable]
- 1359 | int w;
- | ^
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1360:6: warning: variable ‘h’ set but not used [-Wunused-but-set-variable]
- 1360 | int h;
- | ^
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp: In member function ‘void VulkanQueueRunner::PerformBlit(const VKRStep&, VkCommandBuffer)’:
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1500:23: warning: unused variable ‘srcBarriers’ [-Wunused-variable]
- 1500 | VkImageMemoryBarrier srcBarriers[2]{};
- | ^~~~~~~~~~~
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1501:23: warning: unused variable ‘dstBarriers’ [-Wunused-variable]
- 1501 | VkImageMemoryBarrier dstBarriers[2]{};
- | ^~~~~~~~~~~
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1526:23: warning: unused variable ‘srcStage’ [-Wunused-variable]
- 1526 | VkPipelineStageFlags srcStage = 0;
- | ^~~~~~~~
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1527:23: warning: unused variable ‘dstStage’ [-Wunused-variable]
- 1527 | VkPipelineStageFlags dstStage = 0;
- | ^~~~~~~~
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1529:6: warning: unused variable ‘srcCount’ [-Wunused-variable]
- 1529 | int srcCount = 0;
- | ^~~~~~~~
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1530:6: warning: unused variable ‘dstCount’ [-Wunused-variable]
- 1530 | int dstCount = 0;
- | ^~~~~~~~
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp: In static member function ‘static void VulkanQueueRunner::SetupTransitionToTransferDst(VKRImage&, VkImageAspectFlags, VulkanBarrier*)’:
- ./Common/GPU/Vulkan/VulkanQueueRunner.cpp:1626:21: warning: variable ‘imageAspect’ set but not used [-Wunused-but-set-variable]
- 1626 | VkImageAspectFlags imageAspect = aspect;
- | ^~~~~~~~~~~
- ./Common/Profiler/Profiler.cpp: In function ‘void internal_profiler_end_frame()’:
- ./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]
- 195 | memset(&history[MAX_THREADS * profiler.historyPos], 0, sizeof(CategoryFrame) * MAX_THREADS);
- | ^
- ./Common/Profiler/Profiler.cpp:35:8: note: ‘struct CategoryFrame’ declared here
- 35 | struct CategoryFrame {
- | ^~~~~~~~~~~~~
- In file included from ./Common/Render/TextureAtlas.cpp:6:
- ./Common/Render/TextureAtlas.cpp: In member function ‘bool Atlas::Load(const uint8_t*, size_t)’:
- ./Common/Render/TextureAtlas.h:6:39: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
- 6 | #define ATLAS_MAGIC ('A' + ('T' << 8) + ('L' << 16) | ('A' << 24))
- | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
- ./Common/Render/TextureAtlas.cpp:60:22: note: in expansion of macro ‘ATLAS_MAGIC’
- 60 | if (header.magic != ATLAS_MAGIC) {
- | ^~~~~~~~~~~
- ./Common/Thread/ParallelLoop.cpp: In constructor ‘LoopRangeTask::LoopRangeTask(WaitableCounter*, const std::function<void(int, int)>&, int, int)’:
- ./Common/Thread/ParallelLoop.cpp:22:19: warning: ‘LoopRangeTask::counter_’ will be initialized after [-Wreorder]
- 22 | WaitableCounter *counter_;
- | ^~~~~~~~
- ./Common/Thread/ParallelLoop.cpp:21:32: warning: ‘std::function<void(int, int)> LoopRangeTask::loop_’ [-Wreorder]
- 21 | std::function<void(int, int)> loop_;
- | ^~~~~
- ./Common/Thread/ParallelLoop.cpp:9:2: warning: when initialized here [-Wreorder]
- 9 | LoopRangeTask(WaitableCounter *counter, const std::function<void(int, int)> &loop, int lower, int upper)
- | ^~~~~~~~~~~~~
- ./Common/Thread/ThreadManager.cpp: In member function ‘void ThreadManager::Teardown()’:
- ./Common/Thread/ThreadManager.cpp:90:14: warning: unused variable ‘task’ [-Wunused-variable]
- 90 | for (Task *task : threadCtx->private_queue) {
- | ^~~~
- In file included from ./Common/UI/UIScreen.cpp:9:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./Common/UI/ViewGroup.cpp: In member function ‘std::string UI::ViewGroup::DescribeListUnordered(const char*) const’:
- ./Common/UI/ViewGroup.cpp:192:7: warning: unused variable ‘needNewline’ [-Wunused-variable]
- 192 | bool needNewline = false;
- | ^~~~~~~~~~~
- ./Common/UI/ViewGroup.cpp: In member function ‘std::string UI::ViewGroup::DescribeListOrdered(const char*) const’:
- ./Common/UI/ViewGroup.cpp:213:7: warning: unused variable ‘needNewline’ [-Wunused-variable]
- 213 | bool needNewline = false;
- | ^~~~~~~~~~~
- ./Common/UI/ViewGroup.cpp: In function ‘float UI::GetTargetScore(const Point&, int, UI::View*, UI::View*, UI::FocusDirection)’:
- ./Common/UI/ViewGroup.cpp:304:7: warning: variable ‘vertical’ set but not used [-Wunused-but-set-variable]
- 304 | bool vertical = false;
- | ^~~~~~~~
- ./Common/UI/ViewGroup.cpp: In member function ‘virtual bool UI::ScrollView::SubviewFocused(UI::View*)’:
- ./Common/UI/ViewGroup.cpp:936:20: warning: ‘viewEnd’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 936 | ScrollTo(viewEnd - visibleSize + overscroll);
- | ~~~~~~~~^~~~~~~~~~~~~
- ./Common/UI/ViewGroup.cpp:937:9: warning: ‘viewStart’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 937 | } else if (viewStart < pos) {
- | ^~
- ./Common/MemoryUtil.cpp:45:12: warning: ‘hint_location’ defined but not used [-Wunused-variable]
- 45 | static int hint_location;
- | ^~~~~~~~~~~~~
- ./Common/TimeUtil.cpp:24:15: warning: ‘curtime’ defined but not used [-Wunused-variable]
- 24 | static double curtime = 0;
- | ^~~~~~~
- ./SDL/SDLMain.cpp: In function ‘int main(int, char**)’:
- ./SDL/SDLMain.cpp:847:20: warning: unused variable ‘touchEvent’ [-Wunused-variable]
- 847 | SDL_Event event, touchEvent;
- | ^~~~~~~~~~
- ./SDL/SDLMain.cpp:1139:18: warning: unused variable ‘keys’ [-Wunused-variable]
- 1139 | const uint8_t *keys = SDL_GetKeyboardState(NULL);
- | ^~~~
- ./Core/MIPS/IR/IRCompVFPU.cpp:91:14: warning: ‘bool MIPSComp::IsOverlapSafeAllowS(int, u8*, int, u8*, int, u8*)’ defined but not used [-Wunused-function]
- 91 | static bool IsOverlapSafeAllowS(int dn, u8 dregs[], int sn, u8 sregs[], int tn = 0, u8 tregs[] = nullptr) {
- | ^~~~~~~~~~~~~~~~~~~
- ./Core/Util/DisArm64.cpp: In function ‘void DataProcessingImmediate(uint32_t, uint64_t, Instruction*)’:
- ./Core/Util/DisArm64.cpp:187:7: warning: unused variable ‘N’ [-Wunused-variable]
- 187 | int N = (w >> 22) & 1;
- | ^
- ./Core/Util/DisArm64.cpp: In function ‘void BranchExceptionAndSystem(uint32_t, uint64_t, Instruction*, SymbolCallback)’:
- ./Core/Util/DisArm64.cpp:226:7: warning: unused variable ‘offset’ [-Wunused-variable]
- 226 | int offset = SignExtend19(w >> 5);
- | ^~~~~~
- ./Core/Util/DisArm64.cpp: In function ‘void LoadStore(uint32_t, uint64_t, Instruction*)’:
- ./Core/Util/DisArm64.cpp:334:9: warning: unused variable ‘S’ [-Wunused-variable]
- 334 | int S = (w >> 12) & 1;
- | ^
- ./Core/Util/DisArm64.cpp: In function ‘void DataProcessingRegister(uint32_t, uint64_t, Instruction*)’:
- ./Core/Util/DisArm64.cpp:453:8: warning: unused variable ‘S’ [-Wunused-variable]
- 453 | bool S = (w >> 29) & 1;
- | ^
- ./Core/Util/DisArm64.cpp:476:7: warning: unused variable ‘imm3’ [-Wunused-variable]
- 476 | int imm3 = (w >> 10) & 0x7;
- | ^~~~
- ./Core/Util/DisArm64.cpp: In function ‘void FPandASIMD1(uint32_t, uint64_t, Instruction*)’:
- ./Core/Util/DisArm64.cpp:632:9: warning: unused variable ‘Q’ [-Wunused-variable]
- 632 | int Q = GetQ(w);
- | ^
- ./Core/Util/DisArm64.cpp:829:9: warning: unused variable ‘U’ [-Wunused-variable]
- 829 | bool U = GetU(w);
- | ^
- ./Core/Util/DisArm64.cpp:832:9: warning: unused variable ‘M’ [-Wunused-variable]
- 832 | bool M = (w >> 20) & 1;
- | ^
- ./Core/Util/DisArm64.cpp: In function ‘void FPandASIMD2(uint32_t, uint64_t, Instruction*)’:
- ./Core/Util/DisArm64.cpp:892:9: warning: unused variable ‘e’ [-Wunused-variable]
- 892 | int e = opcode2 >> 4;
- | ^
- ./Core/MIPS/x86/CompVFPU.cpp: In member function ‘virtual void MIPSComp::Jit::Comp_ColorConv(MIPSOpcode)’:
- ./Core/MIPS/x86/CompVFPU.cpp:3600:6: warning: unused variable ‘vd’ [-Wunused-variable]
- 3600 | int vd = _VD;
- | ^~
- ./Core/MIPS/x86/CompVFPU.cpp:3601:6: warning: unused variable ‘vs’ [-Wunused-variable]
- 3601 | int vs = _VS;
- | ^~
- ./Core/MIPS/x86/RegCache.cpp: In member function ‘void GPRRegCache::Start(MIPSState*, MIPSComp::JitState*, MIPSComp::JitOptions*, MIPSAnalyst::AnalysisResults&)’:
- ./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]
- 69 | for (int i = 0; i < NUM_X_REGS; i++) {
- | ~~^~~~~~~~~~~~
- ./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]
- 74 | memset(regs, 0, sizeof(regs));
- | ^
- In file included from ./Core/MIPS/x86/Jit.h:32,
- from ./Core/MIPS/x86/RegCache.cpp:28:
- ./Core/MIPS/x86/RegCache.h:45:8: note: ‘struct MIPSCachedReg’ declared here
- 45 | struct MIPSCachedReg {
- | ^~~~~~~~~~~~~
- ./Core/MIPS/x86/RegCache.cpp: In member function ‘void GPRRegCache::UnlockAllX()’:
- ./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]
- 131 | for (int i = 0; i < NUM_X_REGS; i++)
- | ~~^~~~~~~~~~~~
- ./Core/MIPS/x86/RegCache.cpp: In member function ‘void GPRRegCache::Flush()’:
- ./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]
- 406 | for (int i = 0; i < NUM_X_REGS; i++) {
- | ~~^~~~~~~~~~~~
- ./Core/MIPS/x86/RegCacheFPU.cpp: In member function ‘void FPURegCache::SetupInitialRegs()’:
- ./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]
- 59 | memset(regsInitial, 0, sizeof(regsInitial));
- | ^
- In file included from ./Core/MIPS/x86/Jit.h:33,
- from ./Core/MIPS/x86/RegCacheFPU.cpp:27:
- ./Core/MIPS/x86/RegCacheFPU.h:67:8: note: ‘struct MIPSCachedFPReg’ declared here
- 67 | struct MIPSCachedFPReg {
- | ^~~~~~~~~~~~~~~
- ./Core/MIPS/x86/RegCacheFPU.cpp: In member function ‘bool FPURegCache::CanMapVS(const u8*, VectorSize)’:
- ./Core/MIPS/x86/RegCacheFPU.cpp:218:26: warning: unused variable ‘v0’ [-Wunused-variable]
- 218 | const MIPSCachedFPReg &v0 = vregs[v[0]];
- | ^~
- ./Core/AVIDump.cpp:60:13: warning: ‘s_start_dumping’ defined but not used [-Wunused-variable]
- 60 | static bool s_start_dumping = false;
- | ^~~~~~~~~~~~~~~
- ./Core/AVIDump.cpp:57:12: warning: ‘s_bytes_per_pixel’ defined but not used [-Wunused-variable]
- 57 | static int s_bytes_per_pixel;
- | ^~~~~~~~~~~~~~~~~
- In file included from ./Core/Core.cpp:39:
- ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
- 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
- | ^~~~~~~~~~~~~~
- ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 35 | static const char *STATE_EXTENSION = "ppst";
- | ^~~~~~~~~~~~~~~
- ./Core/Debugger/DisassemblyManager.cpp: In member function ‘void DisassemblyManager::getLine(u32, bool, DisassemblyLineInfo&, DebugInterface*)’:
- ./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]
- 308 | memset(&dest.info, 0, sizeof(dest.info));
- | ^
- In file included from ./Core/Debugger/DisassemblyManager.h:24,
- from ./Core/Debugger/DisassemblyManager.cpp:33:
- ./Core/MIPS/MIPSAnalyst.h:142:17: note: ‘struct MIPSAnalyst::MipsOpcodeInfo’ declared here
- 142 | typedef struct {
- | ^
- ./Core/Debugger/WebSocket/DisasmSubscriber.cpp: In member function ‘void WebSocketDisasmState::WriteDisasmLine(json::JsonWriter&, const DisassemblyLineInfo&)’:
- ./Core/Debugger/WebSocket/DisasmSubscriber.cpp:123:17: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 123 | if (dataStart == -1)
- | ~~~~~~~~~~^~~~~
- ./Core/Debugger/WebSocket/DisasmSubscriber.cpp: In member function ‘void WebSocketDisasmState::Disasm(DebuggerRequest&)’:
- ./Core/Debugger/WebSocket/DisasmSubscriber.cpp:321:13: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 321 | if (start == -1)
- | ~~~~~~^~~~~
- ./Core/Debugger/WebSocket/DisasmSubscriber.cpp:331:13: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 331 | if (start == -1)
- | ~~~~~~^~~~~
- ./Core/Debugger/WebSocket/CPUCoreSubscriber.cpp: In function ‘void WebSocketCPUGetReg(DebuggerRequest&)’:
- ./Core/Debugger/WebSocket/CPUCoreSubscriber.cpp:299:16: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 299 | json.writeUint("uintValue", val);
- | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
- ./Core/Debugger/WebSocket/HLESubscriber.cpp: In function ‘bool ThreadInfoForStatus(DebuggerRequest&, DebugThreadInfo*)’:
- ./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]
- 115 | if (t.id == threadID) {
- | ~~~~~^~~~~~~~~~~
- ./Core/Debugger/WebSocket/HLESubscriber.cpp: In function ‘void WebSocketHLEFuncAdd(DebuggerRequest&)’:
- ./Core/Debugger/WebSocket/HLESubscriber.cpp:259:22: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 259 | u32 endBegin = size == -1 ? prevBegin : g_symbolMap->GetFunctionStart(addr + size - 1);
- | ~~~~~^~~~~
- ./Core/Debugger/WebSocket/HLESubscriber.cpp:264:23: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 264 | } else if (prevBegin != -1) {
- | ~~~~~~~~~~^~~~~
- ./Core/Debugger/WebSocket/HLESubscriber.cpp:270:12: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 270 | if (size == -1)
- | ~~~~~^~~~~
- ./Core/Debugger/WebSocket/HLESubscriber.cpp:279:12: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 279 | if (size == -1)
- | ~~~~~^~~~~
- ./Core/Debugger/WebSocket/HLESubscriber.cpp: In function ‘void WebSocketHLEFuncRemove(DebuggerRequest&)’:
- ./Core/Debugger/WebSocket/HLESubscriber.cpp:327:16: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 327 | if (funcBegin == -1)
- | ~~~~~~~~~~^~~~~
- ./Core/Debugger/WebSocket/HLESubscriber.cpp:333:16: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 333 | if (prevBegin != -1) {
- | ~~~~~~~~~~^~~~~
- ./Core/Debugger/WebSocket/HLESubscriber.cpp: In function ‘void WebSocketHLEFuncRename(DebuggerRequest&)’:
- ./Core/Debugger/WebSocket/HLESubscriber.cpp:386:16: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 386 | if (funcBegin == -1)
- | ~~~~~~~~~~^~~~~
- ./Core/Debugger/WebSocket/HLESubscriber.cpp: In function ‘void WebSocketHLEBacktrace(DebuggerRequest&)’:
- ./Core/Debugger/WebSocket/HLESubscriber.cpp:468:17: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 468 | if ((threadID == -1 && th.isCurrent) || th.id == threadID) {
- | ~~~~~~~~~^~~~~
- ./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]
- 468 | if ((threadID == -1 && th.isCurrent) || th.id == threadID) {
- | ~~~~~~^~~~~~~~~~~
- ./Core/Debugger/WebSocket/InputSubscriber.cpp: In member function ‘virtual void WebSocketInputState::Broadcast(net::WebSocketServer*)’:
- ./Core/Debugger/WebSocket/InputSubscriber.cpp:207:22: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 207 | if (press.duration == -1) {
- | ~~~~~~~~~~~~~~~^~~~~
- ./Core/Debugger/WebSocket/SteppingSubscriber.cpp: In member function ‘void WebSocketSteppingState::Out(DebuggerRequest&)’:
- ./Core/Debugger/WebSocket/SteppingSubscriber.cpp:203:17: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 203 | if ((threadID == -1 && th.isCurrent) || th.id == threadID) {
- | ~~~~~~~~~^~~~~
- ./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]
- 203 | if ((threadID == -1 && th.isCurrent) || th.id == threadID) {
- | ~~~~~~^~~~~~~~~~~
- ./Core/Dialog/PSPSaveDialog.cpp: In member function ‘void PSPSaveDialog::ExecuteNotVisibleIOAction()’:
- ./Core/Dialog/PSPSaveDialog.cpp:1140:14: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 1140 | if (result == SCE_UTILITY_SAVEDATA_ERROR_SAVE_MS_NOSPACE) {
- ./Core/Dialog/PSPSaveDialog.cpp:1152:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 1152 | if(result == SCE_UTILITY_SAVEDATA_ERROR_LOAD_NO_DATA)
- In file included from ./Core/Dialog/PSPSaveDialog.cpp:44:
- ./Core/SaveState.h: At global scope:
- ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
- 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
- | ^~~~~~~~~~~~~~
- ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 35 | static const char *STATE_EXTENSION = "ppst";
- | ^~~~~~~~~~~~~~~
- ./Core/ELF/ElfReader.cpp: In member function ‘bool ElfReader::LoadSymbols()’:
- ./Core/ELF/ElfReader.cpp:709:8: warning: unused variable ‘bind’ [-Wunused-variable]
- 709 | int bind = symtab[sym].st_info >> 4;
- | ^~~~
- In file included from ./Core/ELF/ElfReader.cpp:28:
- ./Core/Debugger/MemBlockInfo.h: In member function ‘void ElfReader::LoadRelocations2(int)’:
- ./Core/Debugger/MemBlockInfo.h:65:15: warning: ‘addr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 65 | NotifyMemInfo(flags, start, size, str, strlen(str));
- | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/ELF/ElfReader.cpp:232:10: note: ‘addr’ was declared here
- 232 | u32 op, addr;
- | ^~~~
- ./Core/Dialog/SavedataParam.cpp: In member function ‘bool SavedataParam::LoadSFO(SceUtilitySavedataParam*, const string&)’:
- ./Core/Dialog/SavedataParam.cpp:800:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 128 equals destination size [-Wstringop-truncation]
- 800 | strncpy(param->sfoParam.title,sfoFile.GetValueString("TITLE").c_str(),128);
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/Dialog/SavedataParam.cpp:801:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 128 equals destination size [-Wstringop-truncation]
- 801 | strncpy(param->sfoParam.savedataTitle,sfoFile.GetValueString("SAVEDATA_TITLE").c_str(),128);
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/Dialog/SavedataParam.cpp:802:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 1024 equals destination size [-Wstringop-truncation]
- 802 | strncpy(param->sfoParam.detail,sfoFile.GetValueString("SAVEDATA_DETAIL").c_str(),1024);
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/Dialog/SavedataParam.cpp: In member function ‘int SavedataParam::Save(SceUtilitySavedataParam*, const string&, bool)’:
- ./Core/Dialog/SavedataParam.cpp:543:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 20 equals destination size [-Wstringop-truncation]
- 543 | strncpy(param->saveName, saveDirName.c_str(), 20);
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/Dialog/SavedataParam.cpp: In member function ‘int SavedataParam::LoadSaveData(SceUtilitySavedataParam*, const string&, const string&, bool)’:
- ./Core/Dialog/SavedataParam.cpp:661:9: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 20 equals destination size [-Wstringop-truncation]
- 661 | strncpy(param->saveName, saveDirName.c_str(), 20);
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/Dialog/SavedataParam.cpp: In member function ‘int SavedataParam::GetSizes(SceUtilitySavedataParam*)’:
- ./Core/Dialog/SavedataParam.cpp:1085:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 8 equals destination size [-Wstringop-truncation]
- 1085 | strncpy(param->msFree->freeSpaceStr, spaceTxt.c_str(), sizeof(param->msFree->freeSpaceStr));
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/Dialog/SavedataParam.cpp:1109:11: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 8 equals destination size [-Wstringop-truncation]
- 1109 | strncpy(param->msData->info.usedSpaceStr, spaceTxt.c_str(), sizeof(param->msData->info.usedSpaceStr));
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/Dialog/SavedataParam.cpp:1113:11: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 8 equals destination size [-Wstringop-truncation]
- 1113 | strncpy(param->msData->info.usedSpace32Str, spaceTxt.c_str(), sizeof(param->msData->info.usedSpace32Str));
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/Dialog/SavedataParam.cpp:1153:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 8 equals destination size [-Wstringop-truncation]
- 1153 | strncpy(param->utilityData->usedSpaceStr, spaceTxt.c_str(), sizeof(param->utilityData->usedSpaceStr));
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/Dialog/SavedataParam.cpp:1159:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 8 equals destination size [-Wstringop-truncation]
- 1159 | strncpy(param->utilityData->usedSpace32Str, spaceTxt.c_str(), sizeof(param->utilityData->usedSpace32Str));
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/ELF/ParamSFO.cpp: In member function ‘bool ParamSFOData::ReadSFO(const u8*, size_t)’:
- ./Core/ELF/ParamSFO.cpp:110:12: warning: unused variable ‘data_start’ [-Wunused-variable]
- 110 | const u8 *data_start = paramsfo + header->data_table_start;
- | ^~~~~~~~~~
- ./Core/FileSystems/MetaFileSystem.cpp: In member function ‘int MetaFileSystem::MapFilePath(const string&, std::string&, MetaFileSystem::MountPoint**)’:
- ./Core/FileSystems/MetaFileSystem.cpp:249:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘<unnamed enum>’ [-Wsign-compare]
- 249 | return error == SCE_KERNEL_ERROR_NOCWD ? error : 0;
- | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/HLE/ReplaceTables.cpp:443:12: warning: ‘int Replace_vmmul_q_transp()’ defined but not used [-Wunused-function]
- 443 | static int Replace_vmmul_q_transp() {
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./Core/HLE/ReplaceTables.cpp:84:12: warning: ‘int Replace_asinf()’ defined but not used [-Wunused-function]
- 84 | static int Replace_asinf() {
- | ^~~~~~~~~~~~~
- ./Core/HLE/ReplaceTables.cpp:78:12: warning: ‘int Replace_acosf()’ defined but not used [-Wunused-function]
- 78 | static int Replace_acosf() {
- | ^~~~~~~~~~~~~
- ./Core/HLE/sceAtrac.cpp: In member function ‘void Atrac::SeekToSample(int)’:
- ./Core/HLE/sceAtrac.cpp:495:7: warning: unused variable ‘seekFrame’ [-Wunused-variable]
- 495 | int seekFrame = sample + offsetSamples - unalignedSamples;
- | ^~~~~~~~~
- In file included from ./Common/Log.h:20,
- from ./Common/Serialize/Serializer.h:37,
- from ./Core/HLE/sceAudiocodec.cpp:18:
- ./Core/HLE/sceAudiocodec.cpp: In function ‘void __sceAudiocodecDoState(PointerWrap&)’:
- ./Common/CommonFuncs.h:25:34: warning: division ‘sizeof (int*) / sizeof (int)’ does not compute the number of array elements [-Wsizeof-pointer-div]
- 25 | #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
- | ~~~~~~~~~~^~~~~~~~~~~~~~
- ./Core/HLE/sceAudiocodec.cpp:191:45: note: in expansion of macro ‘ARRAY_SIZE’
- 191 | DoArray(p, codec_, s >= 2 ? count : (int)ARRAY_SIZE(codec_));
- | ^~~~~~~~~~
- ./Core/HLE/sceAudiocodec.cpp:182:9: note: first ‘sizeof’ operand was declared here
- 182 | auto codec_ = new int[count];
- | ^~~~~~
- In file included from ./Common/Log.h:20,
- from ./Common/Serialize/Serializer.h:37,
- from ./Core/HLE/sceAudiocodec.cpp:18:
- ./Common/CommonFuncs.h:25:34: warning: division ‘sizeof (unsigned int*) / sizeof (unsigned int)’ does not compute the number of array elements [-Wsizeof-pointer-div]
- 25 | #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
- | ~~~~~~~~~~^~~~~~~~~~~~~~
- ./Core/HLE/sceAudiocodec.cpp:192:46: note: in expansion of macro ‘ARRAY_SIZE’
- 192 | DoArray(p, ctxPtr_, s >= 2 ? count : (int)ARRAY_SIZE(ctxPtr_));
- | ^~~~~~~~~~
- ./Core/HLE/sceAudiocodec.cpp:183:9: note: first ‘sizeof’ operand was declared here
- 183 | auto ctxPtr_ = new u32[count];
- | ^~~~~~~
- In member function ‘void Font::Init(const u8*, size_t, const FontRegistryEntry&)’,
- inlined from ‘Font::Font(const std::vector<unsigned char>&, const FontRegistryEntry&)’ at ./Core/HLE/sceFont.cpp:171:7,
- inlined from ‘void __LoadInternalFonts()’ at ./Core/HLE/sceFont.cpp:877:50:
- ./Core/HLE/sceFont.cpp:257:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 64 equals destination size [-Wstringop-truncation]
- 257 | strncpy(style_.fontName, entry.fontName, sizeof(style_.fontName));
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In member function ‘void Font::Init(const u8*, size_t, const FontRegistryEntry&)’,
- inlined from ‘Font::Font(const std::vector<unsigned char>&, const FontRegistryEntry&)’ at ./Core/HLE/sceFont.cpp:171:7,
- inlined from ‘void __LoadInternalFonts()’ at ./Core/HLE/sceFont.cpp:908:50:
- ./Core/HLE/sceFont.cpp:257:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 64 equals destination size [-Wstringop-truncation]
- 257 | strncpy(style_.fontName, entry.fontName, sizeof(style_.fontName));
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/HLE/sceJpeg.cpp: In function ‘u32 convertYCbCrToABGR(int, int, int)’:
- ./Core/HLE/sceJpeg.cpp:75:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 75 | if (r > 0xFF) r = 0xFF; if(r < 0) r = 0;
- | ^~
- ./Core/HLE/sceJpeg.cpp:75:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 75 | if (r > 0xFF) r = 0xFF; if(r < 0) r = 0;
- | ^~
- ./Core/HLE/sceJpeg.cpp:76:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 76 | if (g > 0xFF) g = 0xFF; if(g < 0) g = 0;
- | ^~
- ./Core/HLE/sceJpeg.cpp:76:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 76 | if (g > 0xFF) g = 0xFF; if(g < 0) g = 0;
- | ^~
- ./Core/HLE/sceJpeg.cpp:77:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 77 | if (b > 0xFF) b = 0xFF; if(b < 0) b = 0;
- | ^~
- ./Core/HLE/sceJpeg.cpp:77:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 77 | if (b > 0xFF) b = 0xFF; if(b < 0) b = 0;
- | ^~
- ./Core/HLE/sceJpeg.cpp: In function ‘u32 convertRGBToYCbCr(u32)’:
- ./Core/HLE/sceJpeg.cpp:286:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 286 | if ( y > 0xFF) y = 0xFF; if ( y < 0) y = 0;
- | ^~
- ./Core/HLE/sceJpeg.cpp:286:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 286 | if ( y > 0xFF) y = 0xFF; if ( y < 0) y = 0;
- | ^~
- ./Core/HLE/sceJpeg.cpp:287:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 287 | if (cb > 0xFF) cb = 0xFF; if (cb < 0) cb = 0;
- | ^~
- ./Core/HLE/sceJpeg.cpp:287:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 287 | if (cb > 0xFF) cb = 0xFF; if (cb < 0) cb = 0;
- | ^~
- ./Core/HLE/sceJpeg.cpp:288:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 288 | if (cr > 0xFF) cr = 0xFF; if (cr < 0) cr = 0;
- | ^~
- ./Core/HLE/sceJpeg.cpp:288:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 288 | if (cr > 0xFF) cr = 0xFF; if (cr < 0) cr = 0;
- | ^~
- ./Core/HLE/sceIo.cpp: In destructor ‘virtual FileNode::~FileNode()’:
- ./Core/HLE/sceIo.cpp:215:14: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 215 | if (handle != -1)
- | ~~~~~~~^~~~~
- ./Core/HLE/sceIo.cpp: In function ‘u32 sceIoOpenAsync(const char*, int, int)’:
- ./Core/HLE/sceIo.cpp:2111:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘<unnamed enum>’ [-Wsign-compare]
- 2111 | if (error == SCE_KERNEL_ERROR_NODEV)
- | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from ./Core/HLE/sceIo.cpp:41:
- ./Core/SaveState.h: At global scope:
- ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
- 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
- | ^~~~~~~~~~~~~~
- ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 35 | static const char *STATE_EXTENSION = "ppst";
- | ^~~~~~~~~~~~~~~
- In file included from ./Core/HLE/sceKernel.cpp:36:
- ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
- 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
- | ^~~~~~~~~~~~~~
- ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 35 | static const char *STATE_EXTENSION = "ppst";
- | ^~~~~~~~~~~~~~~
- In function ‘u32 sysclib_strcpy(u32, u32)’,
- inlined from ‘void WrapU_UU() [with u32 (* func)(u32, u32) = sysclib_strcpy]’ at ./Core/HLE/FunctionWrappers.h:301:19:
- ./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]
- 722 | strcpy((char *)Memory::GetPointerWriteUnchecked(dst), (const char *)Memory::GetPointerUnchecked(src));
- | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In function ‘u32 sysclib_strcat(u32, u32)’,
- inlined from ‘void WrapU_UU() [with u32 (* func)(u32, u32) = sysclib_strcat]’ at ./Core/HLE/FunctionWrappers.h:301:19:
- ./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]
- 704 | strcat((char *)Memory::GetPointerWriteUnchecked(dst), (const char *)Memory::GetPointerUnchecked(src));
- | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/HLE/sceKernelModule.cpp: In function ‘bool __KernelLoadExec(const char*, u32, std::string*)’:
- ./Core/HLE/sceKernelModule.cpp:1777:12: warning: ‘param.SceKernelLoadExecParam::args’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 1777 | if (param.args > 0) {
- | ~~~~~~^~~~
- ./Core/HLE/sceKernelModule.cpp:1782:12: warning: ‘param.SceKernelLoadExecParam::keyp’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 1782 | if (param.keyp != 0) {
- | ~~~~~~^~~~
- ./Core/HLE/sceMpeg.cpp: In function ‘bool decodePmpVideo(PSPPointer<SceMpegRingBuffer>, u32)’:
- ./Core/HLE/sceMpeg.cpp:1011:7: warning: unused variable ‘len’ [-Wunused-variable]
- 1011 | int len = avcodec_decode_video2(pCodecCtx, pFrame, &got_picture, &packet);
- | ^~~
- ./Core/HLE/sceMpeg.cpp: In function ‘u32 convertABGRToYCbCr(u32)’:
- ./Core/HLE/sceMpeg.cpp:2146:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 2146 | if ( y > 0xFF) y = 0xFF; if ( y < 0) y = 0;
- | ^~
- ./Core/HLE/sceMpeg.cpp:2146:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 2146 | if ( y > 0xFF) y = 0xFF; if ( y < 0) y = 0;
- | ^~
- ./Core/HLE/sceMpeg.cpp:2147:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 2147 | if (cb > 0xFF) cb = 0xFF; if (cb < 0) cb = 0;
- | ^~
- ./Core/HLE/sceMpeg.cpp:2147:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 2147 | if (cb > 0xFF) cb = 0xFF; if (cb < 0) cb = 0;
- | ^~
- ./Core/HLE/sceMpeg.cpp:2148:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 2148 | if (cr > 0xFF) cr = 0xFF; if (cr < 0) cr = 0;
- | ^~
- ./Core/HLE/sceMpeg.cpp:2148:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 2148 | if (cr > 0xFF) cr = 0xFF; if (cr < 0) cr = 0;
- | ^~
- ./Core/HLE/sceNet.cpp: In function ‘void __NetApctlCallbacks()’:
- ./Core/HLE/sceNet.cpp:435:9: warning: unused variable ‘argAddr’ [-Wunused-variable]
- 435 | auto& argAddr = args.data[2];
- | ^~~~~~~
- ./Core/HLE/sceNet.cpp: In function ‘u32 AllocUser(u32, bool, const char*)’:
- ./Core/HLE/sceNet.cpp:557:11: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 557 | if (addr == -1)
- | ~~~~~^~~~~
- ./Core/HLE/sceNet.cpp: In function ‘int sceNetApctlGetInfo(int, u32)’:
- ./Core/HLE/sceNet.cpp:899:6: warning: unused variable ‘info’ [-Wunused-variable]
- 899 | u8* info = Memory::GetPointerWrite(pInfoAddr); // FIXME: Points to a union instead of a struct thus each field have the same address
- | ^~~~
- ./Core/HLE/sceNetAdhoc.cpp: In function ‘void __GameModeNotify(u64, int)’:
- ./Core/HLE/sceNetAdhoc.cpp:206:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘<unnamed enum>’ [-Wsign-compare]
- 206 | if (sent != ERROR_NET_ADHOC_WOULD_BLOCK) {
- | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./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]
- 214 | if (sentcount == replicaGameModeAreas.size())
- | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./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]
- 240 | if (recvd == replicaGameModeAreas.size()) {
- | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/HLE/sceNetAdhoc.cpp: In function ‘void deleteMatchingEvents(int)’:
- ./Core/HLE/sceNetAdhoc.cpp:1103:37: warning: comparison of integer expressions of different signedness: ‘u32_le’ {aka ‘unsigned int’} and ‘const int’ [-Wsign-compare]
- 1103 | if (matchingId < 0 || it->data[0] == matchingId) {
- | ~~~~~~~~~~~~^~~~~~~~~~~~~
- ./Core/HLE/sceNetAdhoc.cpp: In function ‘int AcceptPtpSocket(int, int, sockaddr_in&, SceNetEtherAddr*, u16_le*)’:
- ./Core/HLE/sceNetAdhoc.cpp:3562:8: warning: unused variable ‘ptpsocket’ [-Wunused-variable]
- 3562 | auto& ptpsocket = socket->data.ptp;
- | ^~~~~~~~~
- ./Core/HLE/sceNetAdhoc.cpp: In function ‘int sceNetAdhocMatchingCreate(int, int, int, int, int, int, int, int, u32)’:
- ./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]
- 4925 | memset(context, 0, sizeof(SceNetAdhocMatchingContext));
- | ^
- In file included from ./Core/HLE/sceNetAdhoc.h:21,
- from ./Core/HLE/sceNetAdhoc.cpp:57:
- ./Core/HLE/proAdhoc.h:494:16: note: ‘SceNetAdhocMatchingContext’ {aka ‘struct SceNetAdhocMatchingContext’} declared here
- 494 | typedef struct SceNetAdhocMatchingContext {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/HLE/proAdhoc.cpp: In function ‘void changeBlockingMode(int, int)’:
- ./Core/HLE/proAdhoc.cpp:337:16: warning: unused variable ‘on’ [-Wunused-variable]
- 337 | unsigned long on = 1;
- | ^~
- ./Core/HLE/proAdhoc.cpp:338:16: warning: unused variable ‘off’ [-Wunused-variable]
- 338 | unsigned long off = 0;
- | ^~~
- ./Core/HLE/proAdhoc.cpp: In function ‘void deleteFriendByIP(uint32_t)’:
- ./Core/HLE/proAdhoc.cpp:467:27: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable]
- 467 | SceNetAdhocctlPeerInfo * prev = NULL;
- | ^~~~
- ./Core/HLE/proAdhoc.cpp: In function ‘void sendChat(std::string)’:
- ./Core/HLE/proAdhoc.cpp:1326:9: warning: unused variable ‘chatResult’ [-Wunused-variable]
- 1326 | int chatResult = send((int)metasocket, (const char*)&chat, sizeof(chat), MSG_NOSIGNAL);
- | ^~~~~~~~~~
- ./Core/HLE/proAdhoc.cpp: In function ‘int friendFinder()’:
- ./Core/HLE/proAdhoc.cpp:1368:30: warning: variable ‘chat’ set but not used [-Wunused-but-set-variable]
- 1368 | SceNetAdhocctlChatPacketC2S chat;
- | ^~~~
- ./Core/HLE/proAdhoc.cpp:1375:11: warning: unused variable ‘lastreceptionupdate’ [-Wunused-variable]
- 1375 | uint64_t lastreceptionupdate = 0;
- | ^~~~~~~~~~~~~~~~~~~
- ./Core/HLE/proAdhoc.cpp: In function ‘int setSockNoSIGPIPE(int, int)’:
- ./Core/HLE/proAdhoc.cpp:2042:6: warning: unused variable ‘opt’ [-Wunused-variable]
- 2042 | int opt = flag;
- | ^~~
- ./Core/HLE/proAdhoc.cpp: In function ‘int initNetwork(SceNetAdhocctlAdhocId*)’:
- ./Core/HLE/proAdhoc.cpp:2220:6: warning: unused variable ‘cnt’ [-Wunused-variable]
- 2220 | int cnt = 0;
- | ^~~
- ./Core/HLE/proAdhocServer.cpp: In function ‘void game_product_override(SceNetAdhocctlProductCode*)’:
- ./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]
- 1413 | strncpy(unkproduct.name, productid, sizeof(productid));
- | ^~~~~~~~~~~~~~~~~
- ./Core/HLE/proAdhocServer.cpp: In function ‘void change_blocking_mode(int, int)’:
- ./Core/HLE/proAdhocServer.cpp:1781:16: warning: unused variable ‘on’ [-Wunused-variable]
- 1781 | unsigned long on = 1;
- | ^~
- ./Core/HLE/proAdhocServer.cpp:1782:16: warning: unused variable ‘off’ [-Wunused-variable]
- 1782 | unsigned long off = 0;
- | ^~~
- ./Core/HLE/proAdhocServer.cpp: In function ‘void game_product_relink(SceNetAdhocctlProductCode*, char*, char*)’:
- ./Core/HLE/proAdhocServer.cpp:1282:68: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 9 equals destination size [-Wstringop-truncation]
- 1282 | if(strncmp(product->data, from, PRODUCT_CODE_LENGTH) == 0) strncpy(product->data, to, PRODUCT_CODE_LENGTH);
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/HLE/proAdhocServer.cpp: In function ‘void game_product_override(SceNetAdhocctlProductCode*)’:
- ./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]
- 1352 | strncpy(product->data, it->id_to, PRODUCT_CODE_LENGTH);
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/HLE/proAdhocServer.cpp: In function ‘int server_loop(int)’:
- ./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]
- 2061 | strncpy(message, packet->message, sizeof(message) - 1);
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/HLE/scePower.cpp: In function ‘int sceKernelVolatileMemUnlock(int)’:
- ./Core/HLE/scePower.cpp:369:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘<unnamed enum>’ [-Wsign-compare]
- 369 | if (error == SCE_KERNEL_ERROR_INVALID_MODE) {
- | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/HLE/scePower.cpp:372:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘<unnamed enum>’ [-Wsign-compare]
- 372 | } else if (error == SCE_KERNEL_ERROR_SEMA_OVF) {
- | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from ./Core/HLE/sceUsbCam.cpp:29:
- ./Core/HW/Camera.h:77:20: warning: ‘v4l_buffers’ defined but not used [-Wunused-variable]
- 77 | static v4l_buf_t *v4l_buffers;
- | ^~~~~~~~~~~
- ./Core/HW/Camera.h:76:20: warning: ‘v4l_buffer_count’ defined but not used [-Wunused-variable]
- 76 | static int v4l_buffer_count;
- | ^~~~~~~~~~~~~~~~
- ./Core/HW/Camera.h:75:20: warning: ‘v4l_thread’ defined but not used [-Wunused-variable]
- 75 | static pthread_t v4l_thread;
- | ^~~~~~~~~~
- ./Core/HW/Camera.h:73:20: warning: ‘v4l_ideal_height’ defined but not used [-Wunused-variable]
- 73 | static int v4l_ideal_height;
- | ^~~~~~~~~~~~~~~~
- ./Core/HW/Camera.h:72:20: warning: ‘v4l_ideal_width’ defined but not used [-Wunused-variable]
- 72 | static int v4l_ideal_width;
- | ^~~~~~~~~~~~~~~
- ./Core/HW/Camera.h:71:20: warning: ‘v4l_height_fixed_aspect’ defined but not used [-Wunused-variable]
- 71 | static int v4l_height_fixed_aspect;
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ./Core/HW/Camera.h:70:20: warning: ‘v4l_hw_height’ defined but not used [-Wunused-variable]
- 70 | static int v4l_hw_height;
- | ^~~~~~~~~~~~~
- ./Core/HW/Camera.h:69:20: warning: ‘v4l_hw_width’ defined but not used [-Wunused-variable]
- 69 | static int v4l_hw_width;
- | ^~~~~~~~~~~~
- ./Core/HW/Camera.h:68:20: warning: ‘v4l_format’ defined but not used [-Wunused-variable]
- 68 | static uint32_t v4l_format;
- | ^~~~~~~~~~
- ./Core/HW/Camera.h:67:20: warning: ‘v4l_fd’ defined but not used [-Wunused-variable]
- 67 | static int v4l_fd = -1;
- | ^~~~~~
- ./Core/HLE/sceNp.cpp: In function ‘int sceNpAuthAbortRequest(int)’:
- ./Core/HLE/sceNp.cpp:449:16: warning: comparison of integer expressions of different signedness: ‘u32_le’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 449 | (it->data[0] == requestId) ? it = npAuthEvents.erase(it) : ++it;
- | ~~~~~~~~~~~~^~~~~~~~~~~~
- ./Core/HLE/sceNp2.cpp: In function ‘int sceNpMatching2GetServerInfo(int, u32, u32, u32)’:
- ./Core/HLE/sceNp2.cpp:377:6: warning: unused variable ‘cbArg’ [-Wunused-variable]
- 377 | u32 cbArg = Memory::Read_U32(unknown1Ptr + 0x04);
- | ^~~~~
- ./Core/HLE/sceNp2.cpp: In function ‘int sceNpMatching2JoinRoom(int, u32, u32, u32, u32, u32)’:
- ./Core/HLE/sceNp2.cpp:464:6: warning: unused variable ‘cbArg’ [-Wunused-variable]
- 464 | u32 cbArg = Memory::Read_U32(reqParamPtr + 0x04);
- | ^~~~~
- ./Core/HLE/sceNp2.cpp: In function ‘int sceNpMatching2SearchRoom(int, u32, u32, u32)’:
- ./Core/HLE/sceNp2.cpp:501:6: warning: unused variable ‘cbArg’ [-Wunused-variable]
- 501 | u32 cbArg = Memory::Read_U32(reqParamPtr + 0x04);
- | ^~~~~
- ./Core/HW/SimpleAudioDec.cpp: In member function ‘int AuCtx::AuStreamBytesNeeded()’:
- ./Core/HW/SimpleAudioDec.cpp:419:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘u64’ {aka ‘long long unsigned int’} [-Wsign-compare]
- 419 | if (readPos >= endPos)
- | ~~~~~~~~^~~~~~~~~
- ./Core/HW/Camera.cpp: In function ‘int __v4l_startCapture(int, int)’:
- ./Core/HW/Camera.cpp:356:47: warning: comparison of integer expressions of different signedness: ‘__u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 356 | bool matchesIdeal = frmsize.discrete.width >= ideal_width && frmsize.discrete.height >= ideal_height;
- | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
- ./Core/HW/Camera.cpp:356:89: warning: comparison of integer expressions of different signedness: ‘__u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 356 | bool matchesIdeal = frmsize.discrete.width >= ideal_width && frmsize.discrete.height >= ideal_height;
- | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- ./Core/HW/SasAudio.cpp: In member function ‘void SasInstance::MixVoice(SasVoice&)’:
- ./Core/HW/SasAudio.cpp:505:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 505 | if (samplesToRead > ARRAY_SIZE(mixTemp_) - 2) {
- | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/MIPS/MIPSAnalyst.cpp: In function ‘MIPSAnalyst::MipsOpcodeInfo MIPSAnalyst::GetOpcodeInfo(DebugInterface*, u32)’:
- ./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]
- 1432 | memset(&info, 0, sizeof(info));
- | ^
- In file included from ./Core/MIPS/MIPSAnalyst.cpp:37:
- ./Core/MIPS/MIPSAnalyst.h:142:17: note: ‘struct MIPSAnalyst::MipsOpcodeInfo’ declared here
- 142 | typedef struct {
- | ^
- ./Core/MIPS/MIPSAnalyst.cpp: In function ‘void MIPSAnalyst::ApplyHashMap()’:
- ./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]
- 1364 | strncpy(f.name, mf->name, sizeof(mf->name) - 1);
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/MIPS/MIPSIntVFPU.cpp: In function ‘void MIPSInt::Int_Vminmax(MIPSOpcode)’:
- ./Core/MIPS/MIPSIntVFPU.cpp:1883:7: warning: unused variable ‘cond’ [-Wunused-variable]
- 1883 | int cond = op&15;
- | ^~~~
- In file included from ./Core/Reporting.cpp:38:
- ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
- 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
- | ^~~~~~~~~~~~~~
- ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 35 | static const char *STATE_EXTENSION = "ppst";
- | ^~~~~~~~~~~~~~~
- In file included from ./Core/System.cpp:67:
- ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
- 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
- | ^~~~~~~~~~~~~~
- ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 35 | static const char *STATE_EXTENSION = "ppst";
- | ^~~~~~~~~~~~~~~
- In file included from ./Core/ELF/ParamSFO.h:25,
- from ./Core/TextureReplacer.cpp:43:
- ./Core/TextureReplacer.cpp: In member function ‘bool ReplacedTexture::Load(int, void*, int)’:
- ./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]
- 986 | _assert_msg_(data.size() == info.w * info.h * 4, "Data has wrong size");
- | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
- ./Common/Log.h:158:8: note: in definition of macro ‘_assert_msg_’
- 158 | if (!(_a_)) { \
- | ^~~
- ./Core/Util/GameManager.cpp: In member function ‘bool GameManager::InstallGame(Path, Path, bool)’:
- ./Core/Util/GameManager.cpp:304:6: warning: unused variable ‘error’ [-Wunused-variable]
- 304 | int error = 0;
- | ^~~~~
- ./Core/Util/PortManager.cpp: In member function ‘bool PortManager::Initialize(unsigned int)’:
- ./Core/Util/PortManager.cpp:159:7: warning: unused variable ‘status’ [-Wunused-variable]
- 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
- | ^~~~~~
- ./GPU/GLES/DepthBufferGLES.cpp: In member function ‘void FramebufferManagerGLES::PackDepthbuffer(VirtualFramebuffer*, int, int, int, int)’:
- ./GPU/GLES/DepthBufferGLES.cpp:172:6: warning: unused variable ‘totalPixels’ [-Wunused-variable]
- 172 | int totalPixels = h == 1 ? packWidth : vfb->z_stride * h;
- | ^~~~~~~~~~~
- In file included from ./GPU/GLES/ShaderManagerGLES.cpp:48:
- ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
- 134 | static const char *ub_vs_bonesStr =
- | ^~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
- 93 | static const char *ub_vs_lightsStr =
- | ^~~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
- 49 | static const char *ub_baseStr =
- | ^~~~~~~~~~
- ./GPU/GLES/DrawEngineGLES.cpp: In member function ‘void DrawEngineGLES::DoFlush()’:
- ./GPU/GLES/DrawEngineGLES.cpp:286:8: warning: unused variable ‘dest’ [-Wunused-variable]
- 286 | u8 *dest = (u8 *)DecodeVertsToPushBuffer(frameData.pushVertex, &vertexBufferOffset, &vertexBuffer);
- | ^~~~
- In file included from ./GPU/Vulkan/GPU_Vulkan.h:26,
- from ./GPU/Vulkan/DebugVisVulkan.cpp:28:
- ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
- ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
- 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
- 242 | VulkanDescSetPool descPool;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
- 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
- | ^~~~~~~~~
- In file included from ./GPU/Vulkan/DrawEngineVulkan.cpp:46:
- ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
- ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
- 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
- 242 | VulkanDescSetPool descPool;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
- 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
- | ^~~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.cpp: In member function ‘void DrawEngineVulkan::InitDeviceObjects()’:
- ./GPU/Vulkan/DrawEngineVulkan.cpp:142:11: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
- 142 | VkResult res = vkCreateDescriptorSetLayout(device, &dsl, nullptr, &descriptorSetLayout_);
- | ^~~
- In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
- from ./GPU/Vulkan/DrawEngineVulkan.cpp:48:
- ./GPU/Common/ShaderUniforms.h: At global scope:
- ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
- 134 | static const char *ub_vs_bonesStr =
- | ^~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
- 93 | static const char *ub_vs_lightsStr =
- | ^~~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
- 49 | static const char *ub_baseStr =
- | ^~~~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.cpp: In member function ‘void DrawEngineVulkan::DoFlush()’:
- ./GPU/Vulkan/DrawEngineVulkan.cpp:817:30: warning: ‘ibOffset’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 817 | renderManager->DrawIndexed(pipelineLayout_, ds, ARRAY_SIZE(dynamicUBOOffsets), dynamicUBOOffsets, vbuf, vbOffset, ibuf, ibOffset, vertexCount, 1, VK_INDEX_TYPE_UINT16);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from ./GPU/Vulkan/FramebufferManagerVulkan.cpp:45:
- ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
- ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
- 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
- 242 | VulkanDescSetPool descPool;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
- 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
- | ^~~~~~~~~
- In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
- from ./GPU/Vulkan/FramebufferManagerVulkan.cpp:47:
- ./GPU/Common/ShaderUniforms.h: At global scope:
- ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
- 134 | static const char *ub_vs_bonesStr =
- | ^~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
- 93 | static const char *ub_vs_lightsStr =
- | ^~~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
- 49 | static const char *ub_baseStr =
- | ^~~~~~~~~~
- In file included from ./GPU/Vulkan/PipelineManagerVulkan.cpp:8:
- ./GPU/Vulkan/PipelineManagerVulkan.cpp: In function ‘void VertexAttribSetup(VkVertexInputAttributeDescription*, int, int, PspAttributeLocation)’:
- ./GPU/Vulkan/PipelineManagerVulkan.cpp:92:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 92 | _assert_(fmt < ARRAY_SIZE(VComp));
- ./Common/Log.h:153:8: note: in definition of macro ‘_assert_’
- 153 | if (!(_a_)) {\
- | ^~~
- In file included from ./GPU/Vulkan/GPU_Vulkan.h:26,
- from ./GPU/Vulkan/GPU_Vulkan.cpp:42:
- ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
- ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
- 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
- 242 | VulkanDescSetPool descPool;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
- 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
- | ^~~~~~~~~
- ./GPU/Vulkan/PipelineManagerVulkan.cpp: At global scope:
- ./GPU/Vulkan/PipelineManagerVulkan.cpp:155:20: warning: ‘std::string CutFromMain(std::string)’ defined but not used [-Wunused-function]
- 155 | static std::string CutFromMain(std::string str) {
- | ^~~~~~~~~~~
- In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
- from ./GPU/Vulkan/PipelineManagerVulkan.cpp:13:
- ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
- 134 | static const char *ub_vs_bonesStr =
- | ^~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
- 93 | static const char *ub_vs_lightsStr =
- | ^~~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
- 49 | static const char *ub_baseStr =
- | ^~~~~~~~~~
- In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
- from ./GPU/Vulkan/GPU_Vulkan.cpp:41:
- ./GPU/Common/ShaderUniforms.h: At global scope:
- ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
- 134 | static const char *ub_vs_bonesStr =
- | ^~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
- 93 | static const char *ub_vs_lightsStr =
- | ^~~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
- 49 | static const char *ub_baseStr =
- | ^~~~~~~~~~
- In file included from ./GPU/Vulkan/ShaderManagerVulkan.cpp:42:
- ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
- ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
- 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
- 242 | VulkanDescSetPool descPool;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
- 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
- | ^~~~~~~~~
- ./GPU/Vulkan/ShaderManagerVulkan.cpp: In member function ‘bool ShaderManagerVulkan::LoadCache(FILE*)’:
- ./GPU/Vulkan/ShaderManagerVulkan.cpp:394:11: warning: unused variable ‘vendorID’ [-Wunused-variable]
- 394 | uint32_t vendorID = vulkan->GetPhysicalDeviceProperties().properties.vendorID;
- | ^~~~~~~~
- In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
- from ./GPU/Vulkan/ShaderManagerVulkan.cpp:41:
- ./GPU/Common/ShaderUniforms.h: At global scope:
- ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
- 134 | static const char *ub_vs_bonesStr =
- | ^~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
- 93 | static const char *ub_vs_lightsStr =
- | ^~~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
- 49 | static const char *ub_baseStr =
- | ^~~~~~~~~~
- In file included from ./GPU/Vulkan/GPU_Vulkan.h:26,
- from ./GPU/Vulkan/StateMappingVulkan.cpp:31:
- ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
- ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
- 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
- 242 | VulkanDescSetPool descPool;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
- 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
- | ^~~~~~~~~
- In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
- from ./GPU/Vulkan/StateMappingVulkan.cpp:34:
- ./GPU/Common/ShaderUniforms.h: At global scope:
- ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
- 134 | static const char *ub_vs_bonesStr =
- | ^~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
- 93 | static const char *ub_vs_lightsStr =
- | ^~~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
- 49 | static const char *ub_baseStr =
- | ^~~~~~~~~~
- ./GPU/Vulkan/VulkanUtil.cpp: In member function ‘void VulkanComputeShaderManager::InitDeviceObjects()’:
- ./GPU/Vulkan/VulkanUtil.cpp:97:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 97 | for (int i = 0; i < ARRAY_SIZE(frameData_); i++) {
- ./GPU/Vulkan/VulkanUtil.cpp: In member function ‘void VulkanComputeShaderManager::DestroyDeviceObjects()’:
- ./GPU/Vulkan/VulkanUtil.cpp:117:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 117 | for (int i = 0; i < ARRAY_SIZE(frameData_); i++) {
- In file included from ./GPU/Vulkan/TextureCacheVulkan.cpp:52:
- ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
- ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
- 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
- 242 | VulkanDescSetPool descPool;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
- 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
- | ^~~~~~~~~
- ./GPU/Vulkan/TextureCacheVulkan.cpp: In member function ‘void TextureCacheVulkan::LoadTextureLevel(TexCacheEntry&, uint8_t*, int, int, int, VkFormat)’:
- ./GPU/Vulkan/TextureCacheVulkan.cpp:736:7: warning: unused variable ‘fmt’ [-Wunused-variable]
- 736 | u32 fmt = dstFmt;
- | ^~~
- In file included from ./GPU/Vulkan/ShaderManagerVulkan.h:31,
- from ./GPU/Vulkan/TextureCacheVulkan.cpp:51:
- ./GPU/Common/ShaderUniforms.h: At global scope:
- ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
- 134 | static const char *ub_vs_bonesStr =
- | ^~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
- 93 | static const char *ub_vs_lightsStr =
- | ^~~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
- 49 | static const char *ub_baseStr =
- | ^~~~~~~~~~
- ./GPU/Common/DepalettizeCommon.cpp: In member function ‘DepalShader* DepalShaderCache::GetDepalettizeShader(uint32_t, GEBufferFormat)’:
- ./GPU/Common/DepalettizeCommon.cpp:157:16: warning: unused variable ‘depal’ [-Wunused-variable]
- 157 | DepalShader *depal = shader->second;
- | ^~~~~
- In file included from ./GPU/Common/FragmentShaderGenerator.cpp:30:
- ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
- 134 | static const char *ub_vs_bonesStr =
- | ^~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
- 93 | static const char *ub_vs_lightsStr =
- | ^~~~~~~~~~~~~~~
- In file included from ./GPU/Common/ShaderUniforms.cpp:4:
- ./GPU/Common/ShaderUniforms.h:134:20: warning: ‘ub_vs_bonesStr’ defined but not used [-Wunused-variable]
- 134 | static const char *ub_vs_bonesStr =
- | ^~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:93:20: warning: ‘ub_vs_lightsStr’ defined but not used [-Wunused-variable]
- 93 | static const char *ub_vs_lightsStr =
- | ^~~~~~~~~~~~~~~
- ./GPU/Common/ShaderUniforms.h:49:20: warning: ‘ub_baseStr’ defined but not used [-Wunused-variable]
- 49 | static const char *ub_baseStr =
- | ^~~~~~~~~~
- ./GPU/Common/SoftwareTransformCommon.cpp: In member function ‘void SoftwareTransform::BuildDrawingParams(int, int, u32, u16*&, int&, SoftwareTransformResult*)’:
- ./GPU/Common/SoftwareTransformCommon.cpp:573:7: warning: unused variable ‘useBufferedRendering’ [-Wunused-variable]
- 573 | bool useBufferedRendering = fbman->UseBufferedRendering();
- | ^~~~~~~~~~~~~~~~~~~~
- ./GPU/Common/SoftwareTransformCommon.cpp: In member function ‘void SoftwareTransform::ExpandLines(int, int&, u16*&, TransformedVertex*, TransformedVertex*, int&, bool)’:
- ./GPU/Common/SoftwareTransformCommon.cpp:824:29: warning: unused variable ‘transVtxL’ [-Wunused-variable]
- 824 | const TransformedVertex &transVtxL = transVtx1.x <= transVtx2.x ? transVtx1 : transVtx2;
- | ^~~~~~~~~
- ./GPU/Common/SoftwareTransformCommon.cpp:825:29: warning: unused variable ‘transVtxR’ [-Wunused-variable]
- 825 | const TransformedVertex &transVtxR = transVtx1.x <= transVtx2.x ? transVtx2 : transVtx1;
- | ^~~~~~~~~
- ./GPU/Common/TextureDecoder.cpp:221:12: warning: ‘u32 QuickTexHashNonSSE(const void*, u32)’ defined but not used [-Wunused-function]
- 221 | static u32 QuickTexHashNonSSE(const void *checkp, u32 size) {
- | ^~~~~~~~~~~~~~~~~~
- ./GPU/Common/TextureCacheCommon.cpp: In member function ‘int TextureCacheCommon::GetBestCandidateIndex(const std::vector<AttachCandidate>&)’:
- ./GPU/Common/TextureCacheCommon.cpp:690:68: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const u32’ {aka ‘const unsigned int’} [-Wsign-compare]
- 690 | if (candidate.channel == RASTER_COLOR && candidate.fb->fb_stride == candidate.entry.bufw) {
- | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
- ./GPU/Common/TextureCacheCommon.cpp: In member function ‘FramebufferMatchInfo TextureCacheCommon::MatchFramebuffer(const TextureDefinition&, VirtualFramebuffer*, u32, RasterChannel) const’:
- ./GPU/Common/TextureCacheCommon.cpp:935:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const u32’ {aka ‘const unsigned int’} [-Wsign-compare]
- 935 | if (framebuffer->fb_stride != entry.bufw) {
- | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
- ./GPU/Common/TextureCacheCommon.cpp:981:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const u32’ {aka ‘const unsigned int’} [-Wsign-compare]
- 981 | if (framebuffer->fb_stride != entry.bufw) {
- | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
- ./GPU/Common/TextureCacheCommon.cpp: In member function ‘void TextureCacheCommon::LoadClut(u32, u32)’:
- ./GPU/Common/TextureCacheCommon.cpp:1155:6: warning: unused variable ‘startPos’ [-Wunused-variable]
- 1155 | u32 startPos = gstate.getClutIndexStartPos();
- | ^~~~~~~~
- ./GPU/Common/TextureCacheCommon.cpp: In member function ‘bool TextureCacheCommon::PrepareBuildTexture(BuildTexturePlan&, TexCacheEntry*)’:
- ./GPU/Common/TextureCacheCommon.cpp:2221:7: warning: unused variable ‘tw’ [-Wunused-variable]
- 2221 | int tw = gstate.getTextureWidth(0);
- | ^~
- ./GPU/Common/TextureCacheCommon.cpp:2222:7: warning: unused variable ‘th’ [-Wunused-variable]
- 2222 | int th = gstate.getTextureHeight(0);
- | ^~
- ./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]
- 301 | static void upscale_block_c(
- | ^~~~~~~~~~~~~~~
- ./GPU/Debugger/Playback.cpp: In member function ‘bool GPURecord::BufMapping::SlabInfo::Alloc()’:
- ./GPU/Debugger/Playback.cpp:222:19: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 222 | if (psp_pointer_ == -1) {
- | ~~~~~~~~~~~~~^~~~~
- ./GPU/Debugger/Playback.cpp: In member function ‘bool GPURecord::BufMapping::ExtraInfo::Alloc(u32, u32, const std::vector<unsigned char>&)’:
- ./GPU/Debugger/Playback.cpp:243:19: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 243 | if (psp_pointer_ == -1) {
- | ~~~~~~~~~~~~~^~~~~
- ./GPU/Debugger/Playback.cpp: In member function ‘bool GPURecord::DumpExecute::SubmitCmds(const void*, u32)’:
- ./GPU/Debugger/Playback.cpp:344:19: warning: comparison of integer expressions of different signedness: ‘u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 344 | if (execListBuf == -1) {
- | ~~~~~~~~~~~~^~~~~
- In function ‘void GPURecord::EmitTextureData(int, u32)’,
- inlined from ‘void GPURecord::FlushPrimState(int)’ at ./GPU/Debugger/Record.cpp:397:19:
- ./GPU/Debugger/Record.cpp:354:9: warning: ‘void* memcpy(void*, const void*, size_t)’ specified size 4294967280 exceeds maximum object size 2147483647 [-Wstringop-overflow=]
- 354 | memcpy(&framebufData[sizeof(framebuf)], p, bytes);
- | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In function ‘Path GPURecord::WriteRecording()’,
- inlined from ‘void GPURecord::FinishRecording()’ at ./GPU/Debugger/Record.cpp:505:33:
- ./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]
- 178 | strncpy(header.magic, HEADER_MAGIC, sizeof(header.magic));
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./GPU/Debugger/Record.cpp:180:9: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 9 equals destination size [-Wstringop-truncation]
- 180 | strncpy(header.gameID, g_paramSFO.GetDiscID().c_str(), sizeof(header.gameID));
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from ./GPU/Vulkan/GPU_Vulkan.h:26,
- from ./GPU/GPU.cpp:30:
- ./GPU/Vulkan/DrawEngineVulkan.h: In constructor ‘DrawEngineVulkan::FrameData::FrameData()’:
- ./GPU/Vulkan/DrawEngineVulkan.h:249:84: warning: ‘DrawEngineVulkan::FrameData::descSets’ will be initialized after [-Wreorder]
- 249 | DenseHashMap<DescriptorSetKey, VkDescriptorSet, (VkDescriptorSet)VK_NULL_HANDLE> descSets;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:242:21: warning: ‘VulkanDescSetPool DrawEngineVulkan::FrameData::descPool’ [-Wreorder]
- 242 | VulkanDescSetPool descPool;
- | ^~~~~~~~
- ./GPU/Vulkan/DrawEngineVulkan.h:238:3: warning: when initialized here [-Wreorder]
- 238 | FrameData() : descSets(512), descPool("DrawEngine", true) {
- | ^~~~~~~~~
- ./GPU/Software/Clipper.cpp: In function ‘void Clipper::ProcessTriangle(const VertexData&, const VertexData&, const VertexData&, const VertexData&, BinManager&)’:
- ./GPU/Software/Clipper.cpp:296:24: warning: array subscript 6 is above array bounds of ‘int [6]’ [-Warray-bounds]
- 296 | indices[numIndices++] = inlist[0];
- | ~~~~~~~~~~~~~~~~~~~~^
- ./GPU/Software/Clipper.cpp:269:6: note: while referencing ‘indices’
- 269 | int indices[NUM_INDICES] = { 0, 1, 2, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG };
- | ^~~~~~~
- ./GPU/Software/Clipper.cpp:297:24: warning: array subscript 7 is above array bounds of ‘int [6]’ [-Warray-bounds]
- 297 | indices[numIndices++] = inlist[j - 1];
- | ~~~~~~~~~~~~~~~~~~~~^
- ./GPU/Software/Clipper.cpp:269:6: note: while referencing ‘indices’
- 269 | int indices[NUM_INDICES] = { 0, 1, 2, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG };
- | ^~~~~~~
- ./GPU/Software/Clipper.cpp:298:24: warning: array subscript 8 is above array bounds of ‘int [6]’ [-Warray-bounds]
- 298 | indices[numIndices++] = inlist[j];
- | ~~~~~~~~~~~~~~~~~~~~^
- ./GPU/Software/Clipper.cpp:269:6: note: while referencing ‘indices’
- 269 | int indices[NUM_INDICES] = { 0, 1, 2, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG };
- | ^~~~~~~
- ./GPU/Software/BinManager.cpp: In member function ‘void BinManager::Flush(const char*)’:
- ./GPU/Software/BinManager.cpp:474:35: warning: ‘st’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 474 | flushReasonTimes_[reason] += et - st;
- | ~~~^~~~
- ./GPU/Software/Rasterizer.cpp: In function ‘void Rasterizer::DrawPoint(const VertexData&, const BinCoords&, const Rasterizer::RasterizerState&)’:
- ./GPU/Software/Rasterizer.cpp:1039:8: warning: unused variable ‘samplerID’ [-Wunused-variable]
- 1039 | auto &samplerID = state.samplerID;
- | ^~~~~~~~~
- ./GPU/Software/Rasterizer.cpp: In function ‘void Rasterizer::ClearRectangle(const VertexData&, const VertexData&, const BinCoords&, const Rasterizer::RasterizerState&)’:
- ./GPU/Software/Rasterizer.cpp:1093:8: warning: unused variable ‘samplerID’ [-Wunused-variable]
- 1093 | auto &samplerID = state.samplerID;
- | ^~~~~~~~~
- ./GPU/Software/Rasterizer.cpp: In function ‘void Rasterizer::DrawLine(const VertexData&, const VertexData&, const BinCoords&, const Rasterizer::RasterizerState&)’:
- ./GPU/Software/Rasterizer.cpp:1291:8: warning: unused variable ‘samplerID’ [-Wunused-variable]
- 1291 | auto &samplerID = state.samplerID;
- | ^~~~~~~~~
- ./GPU/Software/RasterizerRectangle.cpp: In function ‘void Rasterizer::DrawSprite(const VertexData&, const VertexData&, const BinCoords&, const Rasterizer::RasterizerState&)’:
- ./GPU/Software/RasterizerRectangle.cpp:84:18: warning: unused variable ‘texfmt’ [-Wunused-variable]
- 84 | GETextureFormat texfmt = state.samplerID.TexFmt();
- | ^~~~~~
- ./GPU/Software/Rasterizer.cpp: In function ‘void Rasterizer::ClearRectangle(const VertexData&, const VertexData&, const BinCoords&, const Rasterizer::RasterizerState&)’:
- ./GPU/Software/Rasterizer.cpp:1246:16: warning: ‘new_color16’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 1246 | const u16 c = (old_color & keepOldMask) | (new_color16 & ~keepOldMask);
- | ^
- In file included from ./GPU/Software/DrawPixel.h:25,
- from ./GPU/Software/Rasterizer.h:20,
- from ./GPU/Software/Sampler.cpp:28:
- ./GPU/Math3D.h: In function ‘Rasterizer::Vec4IntResult Sampler::GetTextureFunctionOutput(Rasterizer::Vec4IntArg, Rasterizer::Vec4IntArg, const SamplerID&)’:
- ./GPU/Math3D.h:592:80: warning: ‘out_a’ may be used uninitialized in this function [-Wmaybe-uninitialized]
- 592 | Vec4(const Vec3<T>& _xyz, const T& _w) : x(_xyz.x), y(_xyz.y), z(_xyz.z), w(_w) {}
- | ^
- ./GPU/Software/Sampler.cpp:435:6: note: ‘out_a’ was declared here
- 435 | int out_a;
- | ^~~~~
- In file included from ./UI/ControlMappingScreen.h:26,
- from ./UI/NativeApp.cpp:106:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./UI/NativeApp.cpp: In function ‘void NativeInit(int, const char**, const char*, const char*, const char*)’:
- ./UI/NativeApp.cpp:611:14: warning: unused variable ‘logman’ [-Wunused-variable]
- 611 | LogManager *logman = LogManager::GetInstance();
- | ^~~~~~
- In file included from ./UI/NativeApp.cpp:90:
- ./Core/SaveState.h: At global scope:
- ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
- 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
- | ^~~~~~~~~~~~~~
- ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 35 | static const char *STATE_EXTENSION = "ppst";
- | ^~~~~~~~~~~~~~~
- In file included from ./UI/ChatScreen.h:4,
- from ./UI/ChatScreen.cpp:16:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/MiscScreens.h:25,
- from ./UI/DevScreens.cpp:64:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./UI/DevScreens.cpp: In member function ‘virtual void SystemInfoScreen::CreateViews()’:
- ./UI/DevScreens.cpp:535:7: warning: unused variable ‘highp_float_min’ [-Wunused-variable]
- 535 | int highp_float_min = gl_extensions.range[1][2][0];
- | ^~~~~~~~~~~~~~~
- In file included from ./UI/MiscScreens.h:25,
- from ./UI/DisplayLayoutScreen.h:22,
- from ./UI/DisplayLayoutScreen.cpp:29:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/EmuScreen.h:27,
- from ./UI/GamepadEmu.h:26,
- from ./UI/EmuScreen.cpp:77:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/EmuScreen.cpp:68:
- ./Core/SaveState.h: At global scope:
- ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
- 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
- | ^~~~~~~~~~~~~~
- ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 35 | static const char *STATE_EXTENSION = "ppst";
- | ^~~~~~~~~~~~~~~
- In file included from ./UI/GameInfoCache.cpp:36:
- ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
- 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
- | ^~~~~~~~~~~~~~
- ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 35 | static const char *STATE_EXTENSION = "ppst";
- | ^~~~~~~~~~~~~~~
- In file included from ./UI/EmuScreen.h:27,
- from ./UI/MainScreen.cpp:49:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/ControlMappingScreen.h:26,
- from ./UI/MiscScreens.cpp:48:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./UI/MiscScreens.cpp: In member function ‘std::shared_ptr<GameInfo> RecentGamesAnimation::GetInfo(UIContext&, int)’:
- ./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]
- 254 | if (index >= recentIsos.size())
- | ~~~~~~^~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/PauseScreen.cpp:25:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/CwCheatScreen.h:22,
- from ./UI/GameScreen.cpp:38:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./UI/PauseScreen.cpp: In constructor ‘ScreenshotViewScreen::ScreenshotViewScreen(const Path&, std::string, int, std::shared_ptr<I18NCategory>, Path)’:
- ./UI/PauseScreen.cpp:218:6: warning: ‘ScreenshotViewScreen::slot_’ will be initialized after [-Wreorder]
- 218 | int slot_;
- | ^~~~~
- ./UI/PauseScreen.cpp:217:7: warning: ‘Path ScreenshotViewScreen::gamePath_’ [-Wreorder]
- 217 | Path gamePath_;
- | ^~~~~~~~~
- ./UI/PauseScreen.cpp:168:2: warning: when initialized here [-Wreorder]
- 168 | ScreenshotViewScreen(const Path &filename, std::string title, int slot, std::shared_ptr<I18NCategory> i18n, Path gamePath)
- | ^~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/PauseScreen.cpp:33:
- ./Core/SaveState.h: At global scope:
- ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
- 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
- | ^~~~~~~~~~~~~~
- ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 35 | static const char *STATE_EXTENSION = "ppst";
- | ^~~~~~~~~~~~~~~
- In file included from ./UI/MiscScreens.h:25,
- from ./UI/GPUDriverTestScreen.h:9,
- from ./UI/GPUDriverTestScreen.cpp:1:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/EmuScreen.h:27,
- from ./UI/GameSettingsScreen.cpp:38:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./UI/GameSettingsScreen.cpp: In member function ‘virtual void GameSettingsScreen::CreateViews()’:
- ./UI/GameSettingsScreen.cpp:341:22: warning: unused variable ‘analogSpeed’ [-Wunused-variable]
- 341 | PopupSliderChoice *analogSpeed = graphicsSettings->Add(new PopupSliderChoice(&iAlternateSpeedPercentAnalog_, 1, 1000, gr->T("Analog Alternative Speed", "Analog alternative speed (in %)"), 5, screenManager(), gr->T("%")));
- | ^~~~~~~~~~~
- ./UI/GameSettingsScreen.cpp:348:69: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 348 | for (int i = 0; i < (int)g_Config.vPostShaderNames.size() + 1 && i < ARRAY_SIZE(shaderNames_); ++i) {
- ./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]
- 350 | shaderNames_[i] = i == g_Config.vPostShaderNames.size() ? "Off" : g_Config.vPostShaderNames[i];
- | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./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]
- 366 | if (i == g_Config.vPostShaderNames.size())
- | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./UI/GameSettingsScreen.cpp:1016:8: warning: unused variable ‘ioTimingMethod’ [-Wunused-variable]
- 1016 | View *ioTimingMethod = systemSettings->Add(new PopupMultiChoice(&g_Config.iIOTimingMethod, sy->T("IO timing method"), ioTimingMethods, 0, ARRAY_SIZE(ioTimingMethods), sy->GetName(), screenManager()));
- | ^~~~~~~~~~~~~~
- ./UI/GameSettingsScreen.cpp: In member function ‘virtual void GestureMappingScreen::CreateViews()’:
- ./UI/GameSettingsScreen.cpp:2232:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 2232 | for (int i = 1; i < ARRAY_SIZE(gestureButton); ++i) {
- In file included from ./UI/MiscScreens.h:25,
- from ./UI/TiltAnalogSettingsScreen.h:21,
- from ./UI/TiltAnalogSettingsScreen.cpp:18:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./UI/TiltEventProcessor.cpp: In function ‘void TiltEventProcessor::GenerateDPadEvent(const TiltEventProcessor::Tilt&)’:
- ./UI/TiltEventProcessor.cpp:104:19: warning: unused variable ‘dir’ [-Wunused-variable]
- 104 | static const int dir[4] = {CTRL_RIGHT, CTRL_DOWN, CTRL_LEFT, CTRL_UP};
- | ^~~
- In file included from ./UI/EmuScreen.h:27,
- from ./UI/GamepadEmu.h:26,
- from ./UI/TouchControlLayoutScreen.cpp:31:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./UI/TouchControlLayoutScreen.cpp: In constructor ‘DragDropButton::DragDropButton(ConfigTouchPos&, const char*, ImageID, ImageID, const Bounds&)’:
- ./UI/TouchControlLayoutScreen.cpp:91:14: warning: ‘DragDropButton::y_’ will be initialized after [-Wreorder]
- 91 | float &x_, &y_;
- | ^~
- ./UI/TouchControlLayoutScreen.cpp:90:9: warning: ‘float& DragDropButton::theScale_’ [-Wreorder]
- 90 | float &theScale_;
- | ^~~~~~~~~
- ./UI/TouchControlLayoutScreen.cpp:43:2: warning: when initialized here [-Wreorder]
- 43 | DragDropButton(ConfigTouchPos &pos, const char *key, ImageID bgImg, ImageID img, const Bounds &screenBounds)
- | ^~~~~~~~~~~~~~
- ./UI/TouchControlLayoutScreen.cpp:90:9: warning: ‘DragDropButton::theScale_’ will be initialized after [-Wreorder]
- 90 | float &theScale_;
- | ^~~~~~~~~
- ./UI/TouchControlLayoutScreen.cpp:89:16: warning: ‘const Bounds& DragDropButton::screenBounds_’ [-Wreorder]
- 89 | const Bounds &screenBounds_;
- | ^~~~~~~~~~~~~
- ./UI/TouchControlLayoutScreen.cpp:43:2: warning: when initialized here [-Wreorder]
- 43 | DragDropButton(ConfigTouchPos &pos, const char *key, ImageID bgImg, ImageID img, const Bounds &screenBounds)
- | ^~~~~~~~~~~~~~
- ./UI/TouchControlLayoutScreen.cpp: In member function ‘virtual void PSPStickDragDrop::Draw(UIContext&)’:
- ./UI/TouchControlLayoutScreen.cpp:295:12: warning: unused variable ‘downBg’ [-Wunused-variable]
- 295 | uint32_t downBg = colorAlpha(0x00FFFFFF, GetButtonOpacity() * 0.5f);
- | ^~~~~~
- ./UI/TouchControlLayoutScreen.cpp: In member function ‘void ControlLayoutView::CreateViews()’:
- ./UI/TouchControlLayoutScreen.cpp:475:10: warning: variable ‘roundImage’ set but not used [-Wunused-but-set-variable]
- 475 | ImageID roundImage = g_Config.iTouchButtonStyle ? ImageID("I_ROUND_LINE") : ImageID("I_ROUND");
- | ^~~~~~~~~~
- In file included from ./UI/MiscScreens.h:25,
- from ./UI/TouchControlVisibilityScreen.h:21,
- from ./UI/TouchControlVisibilityScreen.cpp:20:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/EmuScreen.h:27,
- from ./UI/GamepadEmu.h:26,
- from ./UI/GamepadEmu.cpp:35:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./UI/GamepadEmu.cpp: In member function ‘virtual void ComboKey::Touch(const TouchInput&)’:
- ./UI/GamepadEmu.cpp:206:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 206 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++) {
- ./UI/GamepadEmu.cpp:215:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 215 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++) {
- ./UI/GamepadEmu.cpp: In member function ‘virtual void ComboKey::Update()’:
- ./UI/GamepadEmu.cpp:236:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 236 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++) {
- ./UI/GamepadEmu.cpp:242:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 242 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++) {
- In file included from ./UI/ControlMappingScreen.h:26,
- from ./UI/ControlMappingScreen.cpp:45:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/RemoteISOScreen.h:23,
- from ./UI/RemoteISOScreen.cpp:44:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/PauseScreen.h:24,
- from ./UI/ReportScreen.cpp:24:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/SavedataScreen.h:25,
- from ./UI/SavedataScreen.cpp:32:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/SavedataScreen.cpp:43:
- ./Core/SaveState.h: At global scope:
- ./Core/SaveState.h:40:21: warning: ‘SaveState::LOAD_UNDO_NAME’ defined but not used [-Wunused-variable]
- 40 | static const char *LOAD_UNDO_NAME = "load_undo.ppst";
- | ^~~~~~~~~~~~~~
- ./Core/SaveState.h:38:21: warning: ‘SaveState::UNDO_SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 38 | static const char *UNDO_SCREENSHOT_EXTENSION = "undo.jpg";
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:37:21: warning: ‘SaveState::UNDO_STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 37 | static const char *UNDO_STATE_EXTENSION = "undo.ppst";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:36:21: warning: ‘SaveState::SCREENSHOT_EXTENSION’ defined but not used [-Wunused-variable]
- 36 | static const char *SCREENSHOT_EXTENSION = "jpg";
- | ^~~~~~~~~~~~~~~~~~~~
- ./Core/SaveState.h:35:21: warning: ‘SaveState::STATE_EXTENSION’ defined but not used [-Wunused-variable]
- 35 | static const char *STATE_EXTENSION = "ppst";
- | ^~~~~~~~~~~~~~~
- In file included from ./UI/EmuScreen.h:27,
- from ./UI/Store.cpp:32:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/CwCheatScreen.h:22,
- from ./UI/CwCheatScreen.cpp:33:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./UI/InstallZipScreen.h:23,
- from ./UI/InstallZipScreen.cpp:25:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./UI/InstallZipScreen.cpp: In member function ‘virtual void InstallZipScreen::CreateViews()’:
- ./UI/InstallZipScreen.cpp:36:7: warning: unused variable ‘success’ [-Wunused-variable]
- 36 | bool success = File::GetFileInfo(zipPath_, &fileInfo);
- | ^~~~~~~
- In file included from ./UI/MemStickScreen.h:27,
- from ./UI/MemStickScreen.cpp:46:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./UI/MemStickScreen.cpp: In member function ‘virtual void MemStickScreen::sendMessage(const char*, const char*)’:
- ./UI/MemStickScreen.cpp:469:9: warning: unused variable ‘existingFiles’ [-Wunused-variable]
- 469 | bool existingFiles = FolderSeemsToBeUsed(pendingMemStickFolder);
- | ^~~~~~~~~~~~~
- In file included from ./UI/MiscScreens.h:25,
- from ./UI/ComboKeyMappingScreen.h:20,
- from ./UI/ComboKeyMappingScreen.cpp:33:
- ./Common/UI/UIScreen.h: In constructor ‘UI::SliderFloatPopupScreen::SliderFloatPopupScreen(float*, float, float, const string&, float, const string&, bool)’:
- ./Common/UI/UIScreen.h:230:9: warning: ‘UI::SliderFloatPopupScreen::value_’ will be initialized after [-Wreorder]
- 230 | float *value_;
- | ^~~~~~
- ./Common/UI/UIScreen.h:229:8: warning: ‘float UI::SliderFloatPopupScreen::originalValue_’ [-Wreorder]
- 229 | float originalValue_;
- | ^~~~~~~~~~~~~~
- ./Common/UI/UIScreen.h:213:2: warning: when initialized here [-Wreorder]
- 213 | SliderFloatPopupScreen(float *value, float minValue, float maxValue, const std::string &title, float step = 1.0f, const std::string &units = "", bool liveUpdate = false)
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./UI/ComboKeyMappingScreen.cpp: In member function ‘virtual void ButtonShapeScreen::CreatePopupContents(UI::ViewGroup*)’:
- ./UI/ComboKeyMappingScreen.cpp:46:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 46 | for (int i = 0; i < ARRAY_SIZE(comboKeyShapes); ++i) {
- ./UI/ComboKeyMappingScreen.cpp: In member function ‘virtual void ButtonIconScreen::CreatePopupContents(UI::ViewGroup*)’:
- ./UI/ComboKeyMappingScreen.cpp:74:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 74 | for (int i = 0; i < ARRAY_SIZE(comboKeyImages); ++i) {
- ./UI/ComboKeyMappingScreen.cpp: In constructor ‘ButtonPreview::ButtonPreview(ImageID, ImageID, float, bool, float, int, int)’:
- ./UI/ComboKeyMappingScreen.cpp:113:10: warning: ‘ButtonPreview::img_’ will be initialized after [-Wreorder]
- 113 | ImageID img_;
- | ^~~~
- ./UI/ComboKeyMappingScreen.cpp:109:8: warning: ‘float ButtonPreview::rotI_’ [-Wreorder]
- 109 | float rotI_;
- | ^~~~~
- ./UI/ComboKeyMappingScreen.cpp:93:2: warning: when initialized here [-Wreorder]
- 93 | ButtonPreview(ImageID bgImg, ImageID img, float rotationIcon, bool flipShape, float rotationShape, int x, int y)
- | ^~~~~~~~~~~~~
- ./UI/ComboKeyMappingScreen.cpp:111:7: warning: ‘ButtonPreview::flipS_’ will be initialized after [-Wreorder]
- 111 | bool flipS_;
- | ^~~~~~
- ./UI/ComboKeyMappingScreen.cpp:110:8: warning: ‘float ButtonPreview::rotS_’ [-Wreorder]
- 110 | float rotS_;
- | ^~~~~
- ./UI/ComboKeyMappingScreen.cpp:93:2: warning: when initialized here [-Wreorder]
- 93 | ButtonPreview(ImageID bgImg, ImageID img, float rotationIcon, bool flipShape, float rotationShape, int x, int y)
- | ^~~~~~~~~~~~~
- ./UI/ComboKeyMappingScreen.cpp:110:8: warning: ‘ButtonPreview::rotS_’ will be initialized after [-Wreorder]
- 110 | float rotS_;
- | ^~~~~
- ./UI/ComboKeyMappingScreen.cpp:107:6: warning: ‘int ButtonPreview::x_’ [-Wreorder]
- 107 | int x_;
- | ^~
- ./UI/ComboKeyMappingScreen.cpp:93:2: warning: when initialized here [-Wreorder]
- 93 | ButtonPreview(ImageID bgImg, ImageID img, float rotationIcon, bool flipShape, float rotationShape, int x, int y)
- | ^~~~~~~~~~~~~
- ./UI/ComboKeyMappingScreen.cpp: In member function ‘virtual void ComboKeyScreen::CreateViews()’:
- ./UI/ComboKeyMappingScreen.cpp:135:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 135 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
- ./UI/ComboKeyMappingScreen.cpp:141:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 141 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
- ./UI/ComboKeyMappingScreen.cpp:147:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 147 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
- ./UI/ComboKeyMappingScreen.cpp:153:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 153 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
- ./UI/ComboKeyMappingScreen.cpp:159:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 159 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
- ./UI/ComboKeyMappingScreen.cpp:165:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 165 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
- ./UI/ComboKeyMappingScreen.cpp:171:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 171 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
- ./UI/ComboKeyMappingScreen.cpp:177:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 177 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
- ./UI/ComboKeyMappingScreen.cpp:183:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 183 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
- ./UI/ComboKeyMappingScreen.cpp:189:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 189 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++)
- ./UI/ComboKeyMappingScreen.cpp:246:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
- 246 | for (int i = 0; i < ARRAY_SIZE(comboKeyList); ++i) {
Add Comment
Please, Sign In to add comment