mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	module-rt: fix compiler warning
Fix warning about min/max potentially not being initialized.
This commit is contained in:
		
							parent
							
								
									972ac850b1
								
							
						
					
					
						commit
						3ae2ad59d2
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -524,6 +524,7 @@ static bool check_realtime_privileges(struct impl *impl)
 | 
				
			||||||
			pw_log_warn("Failed to check RLIMIT_RTPRIO: %s", strerror(err));
 | 
								pw_log_warn("Failed to check RLIMIT_RTPRIO: %s", strerror(err));
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							min = max = 0;
 | 
				
			||||||
		if ((err = get_rt_priority_range(&min, &max)) < 0) {
 | 
							if ((err = get_rt_priority_range(&min, &max)) < 0) {
 | 
				
			||||||
			pw_log_warn("Failed to get priority range: %s", strerror(err));
 | 
								pw_log_warn("Failed to get priority range: %s", strerror(err));
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
| 
						 | 
					@ -647,6 +648,7 @@ static int acquire_rt_sched(struct spa_thread *thread, int priority)
 | 
				
			||||||
	struct sched_param sp;
 | 
						struct sched_param sp;
 | 
				
			||||||
	pthread_t pt = (pthread_t)thread;
 | 
						pthread_t pt = (pthread_t)thread;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						min = max = 0;
 | 
				
			||||||
	if ((err = get_rt_priority_range(&min, &max)) < 0)
 | 
						if ((err = get_rt_priority_range(&min, &max)) < 0)
 | 
				
			||||||
		return err;
 | 
							return err;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue