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

Unused parameter - false positive #1156

Open
stefandrissen opened this issue Jan 27, 2025 · 1 comment
Open

Unused parameter - false positive #1156

stefandrissen opened this issue Jan 27, 2025 · 1 comment
Assignees
Labels

Comments

@stefandrissen
Copy link

   METHOD PRIVATE VOID foo (
      i_cbar AS CHARACTER // <-- flagged as unused
   ):

      MESSAGE
         i_cbar // <-- used here
         ( IF TRUE THEN 'boo':u ELSE 'boo':u )
         .

   END METHOD.

If I concatenate the parameter in the message, the warning goes away:

   METHOD PRIVATE VOID foo (
      i_cbar AS CHARACTER
   ):

      MESSAGE
         i_cbar + ' ':u +
         ( IF TRUE THEN 'boo':u ELSE 'boo':u )
         .

   END METHOD.
@gquerret
Copy link
Contributor

Confirmed, will be fixed.

@gquerret gquerret added the CABL label Feb 4, 2025 — with Linear
@gquerret gquerret self-assigned this Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants