mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:22:43 +00:00 
			
		
		
		
	Kernel: Fix miscellaneous warnings when building with Clang
These small changes fix the remaining warnings that come up during kernel compilation with Clang. These specific fixes were for benign things: unused lambda captures and braces around scalar initializers.
This commit is contained in:
		
							parent
							
								
									3c6bdb8a61
								
							
						
					
					
						commit
						42d197cde7
					
				
					 4 changed files with 4 additions and 5 deletions
				
			
		|  | @ -237,7 +237,7 @@ KResultOr<size_t> FileDescription::get_dir_entries(UserOrKernelBuffer& output_bu | |||
|         return true; | ||||
|     }; | ||||
| 
 | ||||
|     KResult result = VFS::the().traverse_directory_inode(*m_inode, [&flush_stream_to_output_buffer, &error, &remaining, &output_buffer, &stream, this](auto& entry) { | ||||
|     KResult result = VFS::the().traverse_directory_inode(*m_inode, [&flush_stream_to_output_buffer, &stream, this](auto& entry) { | ||||
|         size_t serialized_size = sizeof(ino_t) + sizeof(u8) + sizeof(size_t) + sizeof(char) * entry.name.length(); | ||||
|         if (serialized_size > stream.remaining()) { | ||||
|             if (!flush_stream_to_output_buffer()) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Daniel Bertalan
						Daniel Bertalan