Skip to content

Check setAPIVersion return in FillDATPluginInfo - #12

Merged
keithlostracco merged 1 commit into
mainfrom
fix/nodiscard-apiversion
May 30, 2026
Merged

Check setAPIVersion return in FillDATPluginInfo#12
keithlostracco merged 1 commit into
mainfrom
fix/nodiscard-apiversion

Conversation

@keithlostracco

Copy link
Copy Markdown
Contributor

Follow-up to #11. One straggler commit made after that PR was pushed.

setAPIVersion is [[nodiscard]] in the TouchDesigner SDK v4 headers, so discarding its result emitted a C4834 warning during the build. This matches Derivative's own v4 sample idiom and bails out of FillDATPluginInfo if the host does not support this build's API version.

No behavior change for supported hosts; clears the warning.

setAPIVersion is [[nodiscard]] in SDK v4; discarding its result produced a
C4834 warning. Match Derivative's v4 sample idiom and bail out of plugin info
setup if the host does not support this build's API version.
@keithlostracco
keithlostracco merged commit 0e90997 into main May 30, 2026
2 checks passed
@keithlostracco
keithlostracco deleted the fix/nodiscard-apiversion branch May 30, 2026 22:47
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