mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix some LLVM 17 compiler warnings
This commit is contained in:
parent
951b873c14
commit
2fb19ffd8f
176 changed files with 867 additions and 894 deletions
|
|
@ -218,11 +218,7 @@ inline Path getJUCELogoPath()
|
|||
// 0.0 and 1.0 at a random speed
|
||||
struct BouncingNumber
|
||||
{
|
||||
BouncingNumber()
|
||||
: speed (0.0004 + 0.0007 * Random::getSystemRandom().nextDouble()),
|
||||
phase (Random::getSystemRandom().nextDouble())
|
||||
{
|
||||
}
|
||||
virtual ~BouncingNumber() = default;
|
||||
|
||||
float getValue() const
|
||||
{
|
||||
|
|
@ -231,10 +227,11 @@ struct BouncingNumber
|
|||
}
|
||||
|
||||
protected:
|
||||
double speed, phase;
|
||||
double speed = 0.0004 + 0.0007 * Random::getSystemRandom().nextDouble(),
|
||||
phase = Random::getSystemRandom().nextDouble();
|
||||
};
|
||||
|
||||
struct SlowerBouncingNumber : public BouncingNumber
|
||||
struct SlowerBouncingNumber final : public BouncingNumber
|
||||
{
|
||||
SlowerBouncingNumber()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue