Repository navigation
Conversation
The local variable assigned in GetPluginFactoryEntryPoint was never referenced, triggering MSVC warning C4189 (local variable initialized but not referenced). Deleting it changes no behaviour.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Deletes one dead statement in
src/wrapasvst3_entry.cpp(GetPluginFactoryEntryPoint):// try to find a clap which filename stem matches our own - auto kx = os::getParentFolderName(); auto plugname = os::getBinaryName(); plugname.append(".clap");Why
kxis never referenced, so MSVC emits:The call has no other purpose here: the plugin name to search for is derived from
os::getBinaryName()on the following lines. Removing the line clears the warning and changes no behaviour.The same dead line exists on both
mainandnext(same line number, 210), so the issue's "solved in next" label is not accurate. This PR targetsmain(the upstream default).os::getParentFolderName()itself is untouched and still used elsewhere in the file (line 118), so no symbol becomes unused.Verification
git diff --check→ exit 0, no whitespace errors.grep getParentFolderName src/wrapasvst3_entry.cpp→ only the legitimate use at line 118 remains; no reference tokxanywhere in the file or repo.{}58/58,()214/214,[]20/20).Not verified
A compile was not run: this shallow clone has no SDK headers (
clap/clap.his fetched by CMake FetchContent) and this machine has no MSVC toolchain installed, so C4189 cannot be re-confirmed locally before/after. CI on this PR will do the real build.Fixes #436.