mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Windows: Fix and suppress some analysis warnings
This fixes warnings that are emitted when building with the `-analyze` flag enabled.
This commit is contained in:
parent
54423f6583
commit
31a7c62baf
83 changed files with 476 additions and 230 deletions
|
|
@ -273,7 +273,11 @@ public:
|
|||
PathStrokeType::curved,
|
||||
PathStrokeType::beveled };
|
||||
|
||||
jassert (newIndex >= 0 && newIndex < 3);
|
||||
if (! isPositiveAndBelow (newIndex, numElementsInArray (joints)))
|
||||
{
|
||||
jassertfalse;
|
||||
return;
|
||||
}
|
||||
|
||||
listener.owner->setStrokeType (PathStrokeType (listener.owner->getStrokeType().stroke.getStrokeThickness(),
|
||||
joints [newIndex],
|
||||
|
|
@ -318,7 +322,11 @@ public:
|
|||
PathStrokeType::square,
|
||||
PathStrokeType::rounded };
|
||||
|
||||
jassert (newIndex >= 0 && newIndex < 3);
|
||||
if (! isPositiveAndBelow (newIndex, numElementsInArray (ends)))
|
||||
{
|
||||
jassertfalse;
|
||||
return;
|
||||
}
|
||||
|
||||
listener.owner->setStrokeType (PathStrokeType (listener.owner->getStrokeType().stroke.getStrokeThickness(),
|
||||
listener.owner->getStrokeType().stroke.getJointStyle(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue