mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	build-sys: Move to compiling with C11 support
This is needed for building with anonymous unions. A bunch of calls to fail() that used to mysteriously work need fixing -- fail() is a macro that takes a printf-style message as an argument. Not passing this somehow worked with the previous compiler flags, but breaks with -std=c11.
This commit is contained in:
		
							parent
							
								
									8949ed96c6
								
							
						
					
					
						commit
						aa02e1654b
					
				
					 14 changed files with 98 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -65,7 +65,7 @@ static void run_conv_test_float_to_s16(
 | 
			
		|||
            if (abs(samples[i] - samples_ref[i]) > 1) {
 | 
			
		||||
                pa_log_debug("Correctness test failed: align=%d", align);
 | 
			
		||||
                pa_log_debug("%d: %04hx != %04hx (%.24f)\n", i, samples[i], samples_ref[i], floats[i]);
 | 
			
		||||
                fail();
 | 
			
		||||
                ck_abort();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			@ -115,7 +115,7 @@ static void run_conv_test_s16_to_float(
 | 
			
		|||
            if (fabsf(floats[i] - floats_ref[i]) > 0.0001f) {
 | 
			
		||||
                pa_log_debug("Correctness test failed: align=%d", align);
 | 
			
		||||
                pa_log_debug("%d: %.24f != %.24f (%d)\n", i, floats[i], floats_ref[i], samples[i]);
 | 
			
		||||
                fail();
 | 
			
		||||
                ck_abort();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue