mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	video_core: Enforce -Wunused-variable and -Wunused-but-set-variable
This commit is contained in:
		
							parent
							
								
									182cf7d631
								
							
						
					
					
						commit
						2a24b1c973
					
				@ -273,5 +273,11 @@ endif()
 | 
				
			|||||||
if (MSVC)
 | 
					if (MSVC)
 | 
				
			||||||
    target_compile_options(video_core PRIVATE /we4267)
 | 
					    target_compile_options(video_core PRIVATE /we4267)
 | 
				
			||||||
else()
 | 
					else()
 | 
				
			||||||
    target_compile_options(video_core PRIVATE -Werror=conversion -Wno-error=sign-conversion -Werror=switch)
 | 
					    target_compile_options(video_core PRIVATE
 | 
				
			||||||
 | 
					        -Werror=conversion
 | 
				
			||||||
 | 
					        -Wno-error=sign-conversion
 | 
				
			||||||
 | 
					        -Werror=switch
 | 
				
			||||||
 | 
					        -Werror=unused-variable
 | 
				
			||||||
 | 
					        -Werror=unused-but-set-variable
 | 
				
			||||||
 | 
					    )
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 | 
				
			|||||||
@ -114,8 +114,6 @@ void MaxwellDMA::CopyBlockLinearToPitch() {
 | 
				
			|||||||
    const u32 block_depth = src_params.block_size.depth;
 | 
					    const u32 block_depth = src_params.block_size.depth;
 | 
				
			||||||
    const size_t src_size =
 | 
					    const size_t src_size =
 | 
				
			||||||
        CalculateSize(true, bytes_per_pixel, width, height, depth, block_height, block_depth);
 | 
					        CalculateSize(true, bytes_per_pixel, width, height, depth, block_height, block_depth);
 | 
				
			||||||
    const size_t src_layer_size =
 | 
					 | 
				
			||||||
        CalculateSize(true, bytes_per_pixel, width, height, 1, block_height, block_depth);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (read_buffer.size() < src_size) {
 | 
					    if (read_buffer.size() < src_size) {
 | 
				
			||||||
        read_buffer.resize(src_size);
 | 
					        read_buffer.resize(src_size);
 | 
				
			||||||
 | 
				
			|||||||
@ -193,7 +193,6 @@ bool IsASTCSupported() {
 | 
				
			|||||||
Device::Device()
 | 
					Device::Device()
 | 
				
			||||||
    : max_uniform_buffers{BuildMaxUniformBuffers()}, base_bindings{BuildBaseBindings()} {
 | 
					    : max_uniform_buffers{BuildMaxUniformBuffers()}, base_bindings{BuildBaseBindings()} {
 | 
				
			||||||
    const std::string_view vendor = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
 | 
					    const std::string_view vendor = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
 | 
				
			||||||
    const std::string_view renderer = reinterpret_cast<const char*>(glGetString(GL_RENDERER));
 | 
					 | 
				
			||||||
    const std::string_view version = reinterpret_cast<const char*>(glGetString(GL_VERSION));
 | 
					    const std::string_view version = reinterpret_cast<const char*>(glGetString(GL_VERSION));
 | 
				
			||||||
    const std::vector extensions = GetExtensions();
 | 
					    const std::vector extensions = GetExtensions();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user