mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	fixed warning with std::ignore about unused function result (#151)
fixed warning with std::ignore about unused function result
This commit is contained in:
		
							
								
								
									
										2
									
								
								main.cpp
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.cpp
									
									
									
									
									
								
							| @@ -1011,7 +1011,7 @@ int main(int argc, char ** argv) { | |||||||
|                     if(params.use_color) printf(ANSI_BOLD ANSI_COLOR_GREEN); |                     if(params.use_color) printf(ANSI_BOLD ANSI_COLOR_GREEN); | ||||||
|                     if (scanf("%255[^\n]%n%*c", buf, &n_read) <= 0) { |                     if (scanf("%255[^\n]%n%*c", buf, &n_read) <= 0) { | ||||||
|                         // presumable empty line, consume the newline |                         // presumable empty line, consume the newline | ||||||
|                         scanf("%*c"); |                         std::ignore = scanf("%*c"); | ||||||
|                         n_read=0; |                         n_read=0; | ||||||
|                     } |                     } | ||||||
|                     if(params.use_color) printf(ANSI_COLOR_RESET); |                     if(params.use_color) printf(ANSI_COLOR_RESET); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Justin Suess
					Justin Suess