Skip to content

checksrc: handle zero scoped ignore commands#3096

Closed
danielgustafsson wants to merge 1 commit intocurl:masterfrom
danielgustafsson:dg-checksrc_zeroignore
Closed

checksrc: handle zero scoped ignore commands#3096
danielgustafsson wants to merge 1 commit intocurl:masterfrom
danielgustafsson:dg-checksrc_zeroignore

Conversation

@danielgustafsson
Copy link
Copy Markdown
Member

If a !checksrc! disable command specified to ignore zero errors, it was still added to the ignore block even though nothing was ignored. While there were no blocks ignored that shouldn't be ignored, the processing ended with with a warning.

<filename>:<line>:<col>: warning: Unused ignore: LONGLINE (UNUSEDIGNORE)
 /* !checksrc! disable LONGLINE 0 */
                    ^

Fix by instead treating a zero ignore as a a bad command and throw a warning for that one.

If a !checksrc! disable command specified to ignore zero errors, it was
still added to the ignore block even though nothing was ignored. While
there were no blocks ignored that shouldn't be ignored, the processing
ended with with a warning. Fix by instead treating a zero ignore as a
a badcommand and throw a warning for that one.

<filename>:<line>:<col>: warning: Unused ignore: LONGLINE (UNUSEDIGNORE)
 /* !checksrc! disable LONGLINE 0 */
                    ^
@lock lock bot locked as resolved and limited conversation to collaborators Jan 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants