Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude conditional variables from "not used" warnings #32

Open
skk50 opened this issue Nov 20, 2023 · 0 comments
Open

Exclude conditional variables from "not used" warnings #32

skk50 opened this issue Nov 20, 2023 · 0 comments

Comments

@skk50
Copy link

skk50 commented Nov 20, 2023

Scripts SET confitional variables to manage terminal and message display options, example:

Bool bQuestObjectivesHidden = false Conditional ; GetVMQuestVariable condition SGMenu display options

Scripts may never GET the values as they are purely to condition UI elements which triggers a Caprica compile warning:

WARNING W4007: The script variable ABC is initalized byt is never used.

This is totally unnecessary and disrupts compiler output error checking, laeding to un-natural aces as workarounds:

Function BogusCapricaFunction() ; Unnecessary calls on conditional GetVMQuestVariables to clear caprica compiler warnings
Debug.Trace("SKK_CSNGQuestScript " + bQuestObjectivesHidden, aiSeverity=0)
EndFunction

See attachment for more examples of the same.
CapricaBogusConditionalVariableWarnings

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

No branches or pull requests

1 participant