Skip to content
Snippets Groups Projects
Commit 5db37503 authored by Nicholas Nethercote's avatar Nicholas Nethercote
Browse files

Bug 1204195 - Fix two warnings in dom/media/webaudio/blink/. r=rillian.

They were both "truncation from 'double' to 'float'" warnings.

This also allows the COMPILER_ALLOW_WARNINGS=True flag to be removed.

--HG--
extra : rebase_source : 4b57cba0d994671d5218be94d8f838582496ac1c
parent 8da254d5
No related branches found
No related tags found
No related merge requests found
......@@ -167,7 +167,7 @@ float DynamicsCompressorKernel::kAtSlope(float desiredSlope)
float x = WebAudioUtils::ConvertDecibelsToLinear(xDb);
// Approximate k given initial values.
float minK = 0.1;
float minK = 0.1f;
float maxK = 10000;
float k = 5;
......
......@@ -237,7 +237,7 @@ void PeriodicWave::createBandLimitedTables(const float* realData, const float* i
void PeriodicWave::generateBasicWaveform(OscillatorType shape)
{
const float piFloat = M_PI;
const float piFloat = float(M_PI);
unsigned fftSize = periodicWaveSize();
unsigned halfSize = fftSize / 2;
......
......@@ -30,6 +30,3 @@ FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'/dom/media/webaudio',
]
if not CONFIG['GNU_CXX']:
ALLOW_COMPILER_WARNINGS = True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment