mirror of
https://github.com/airwindows/airwindows.git
synced 2026-05-15 06:05:55 -06:00
[GH-ISSUE #18] Idiom Question #14
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/airwindows#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @baconpaul on GitHub (Aug 25, 2020).
Original GitHub issue: https://github.com/airwindows/airwindows/issues/18
Hi!
I have airwindows working nicely in surge. It is great.
One question. I compile surge on lots of compilers with warning levels high. Throughout the code you have this idiom
to advance the pointer. Since ++ has precedence over * this does
* ( in1++ )then discards the result of the dereference.This though generates an unused-value error in clang. You aren't giving the value of the
*operator to anything.Any reason for this pattern in the code vs
in1++orout1++or similar?Thank you!
@airwindows commented on GitHub (Aug 25, 2020):
@baconpaul commented on GitHub (Aug 25, 2020):
Yeah cool OK. It is easy for me to change (or disable the warning) just was curious if there was a reason. Thank you. Will close this. (I chose to integrate Airwindows by using the VST2 wrappers on them and stubbing out a fake VST2 adapter to the surge FX class).
Our nightly just dropped with Airwindows included by the way. About 50 of your FX are now available in the surge effect path and modulation architecture. Thanks again for making open source software.
@baconpaul commented on GitHub (Aug 25, 2020):
Oh and just to follow up on this if you replace the
*in1++;with thein1++;and so on everything works (of course) but you do avoid that extra dereference into the void - and the warning on modern mac and linux compilers.I can't see why steinberg put such a clearly pointless bit of C++ code in their wrapper but glad to know I can just knock it out and remove my warning suppression!
Thanks!