ZCPU Compile-time warnings can now be displayed in the editor + pragma for muting them #16
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.
Quite frankly this was an overdue addition, as up to this point most users may not have ever known that warnings were in the console, this provides a quick and easy way to jump to said warnings, and makes the addition of new warnings more meaningful from here on out since everyone will see them(unless they use the handy dandy pragma commands I've added to silence them)
Displays filename for includes with warnings in them
Furthermore, included file warnings are accurate to where the warning is in the included file, though you can't automatically jump into the file by double clicking on external file warnings, you can jump to the line/col if you open the file manually
Additionally, you can silence editor warnings on a per-file basis using
#pragma silence self
- Mutes warnings generated by code in this file#pragma silence includes
- Mutes warnings generated by code in the files directly included by this fileAliases for these pragma commands include
[silence, mute] for pragma name
[includes, other] for pragma parameter (to mute only warnings in any files included from this one)
[self] for pragma parameter (to mute only warnings in this file)