Add [[maybe_unused]] attribute to TfPyObjWrapperStub._stub
#2206
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.
I'm trying to reduce a bunch of the warnings that take up the build logs (I build often...so any reduction really helps). TfPyObjWrapper is one of the heavy offenders in the logs, but
_stub
is necessary per #1716 , so this just says that_stub
can be unused.NOTE: This does require C++17, I'm just putting it up now so that it's logged for whenever that happens.
I also think this is something that should be applied to
_schemaTokens
in the API schemas too, as those are the other major offenders. But I can hit that up in a different PR if this one doesn't raise any concerns.