Bug 108156 - missing set but not used warning
Summary: missing set but not used warning
Status: RESOLVED DUPLICATE of bug 44677
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 13.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-17 17:53 UTC by Martin Uecker
Modified: 2022-12-17 17:58 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Uecker 2022-12-17 17:53:54 UTC
We are missing a set but not used warning for:

void foo(int value)
{
    value += 42;
}

This would be used for mistakes such as the following:

void foo(int* value)
{
    value += 42;
}
Comment 1 Andrew Pinski 2022-12-17 17:58:15 UTC
Dup of bug 44677.

*** This bug has been marked as a duplicate of bug 44677 ***