Bug 72789 - add -Wunused-private-field
Summary: add -Wunused-private-field
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: unknown
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic
: 87409 (view as bug list)
Depends on:
Blocks: new-warning, new_warning Wunused
  Show dependency treegraph
 
Reported: 2016-08-03 13:13 UTC by Tom Tromey
Modified: 2023-12-21 03:08 UTC (History)
5 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2017-08-22 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2016-08-03 13:13:43 UTC
I found out recently that clang has a '-Wunused-private-field'
warning.  E.g., I got:

https://github.com/mozilla/rr/pull/1757#issuecomment-237031428

I think it would be good to add this to gcc.
Comment 1 Eric Gallager 2017-08-22 15:12:37 UTC
Confirming as an enhancement.
Comment 2 Eric Gallager 2018-09-30 01:07:12 UTC
*** Bug 87409 has been marked as a duplicate of this bug. ***