Skip to content

Fix warnings#52

Merged
ServiusHack merged 3 commits intomainfrom
fix_warnings
Feb 6, 2026
Merged

Fix warnings#52
ServiusHack merged 3 commits intomainfrom
fix_warnings

Conversation

@ServiusHack
Copy link
Owner

No description provided.

The static values can just be made floats by using the `f` suffix.

The value returned by `getDoubleAttribute` is just cast to float, like
the next line already does it.
All callers of `updateGain` already have an `int`, except for
`setChannelVolume` where the single caller also has an `int`.

The only caller of `getInternalOutputChannelName` has `size_t` and the
function itself works with any numeric type.

The `entryIndex` is always an `int` in the caller and the called
functions.

Changed these function signatures to prevent warnings about integer
conversions with possible loss of data.
Call `getChildElement` only once, keeping the pointer for the following
calls. This was done to reduce the number of warnings that `size_t` is
converted to `int` with possible loss of data.
@ServiusHack ServiusHack merged commit c0c0729 into main Feb 6, 2026
4 checks passed
@ServiusHack ServiusHack deleted the fix_warnings branch February 6, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant