Trepan-Debuggers / Trepan-Debuggers/remake

Pragma-like comment to suppress --warn-undefined-variables

Open
#42 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

volunteer wanted if feature is to be added
Dominant language
C
Stars
850
Forks
80
PR merge metrics
No merged PRs in 30d

Description

--warn-undefined-variables is really useful, but some modules are relying on undefined variables being empty, and they generate the checks in thousands. Not always they can be rewritten.
In this cases, it would be beneficial to have a pragma-like comment to suppress the warning for some of lines.
grep-ing them out would only help if the code testing the variable is not in $(eval).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not identify a file, test, or entry point. First determine how --warn-undefined-variables is implemented and how comments are parsed, then define the pragma syntax, its scope, and tests that demonstrate suppressed and unsuppressed warnings.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.