This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi,this bug is a sort of follow up to 10416, which I fixed some time ago and was about avoiding -Wunused warnings for class types with destructors with side-effects.
In this issue reporter notes that we don't handle in the same way references, thus, considering the testcase, we do not warn for:
Lock lock = AcquireLock(); and we do for: const Lock& lock = AcquireLock(); whereas the destructor is involved in both cases in a similar way, etc.Thus I changed the code in poplevel to see through references for -Wunused-variable. Tested x86_64-linux.
Thanks, Paolo. ////////////////////
Attachment:
CL_38958
Description: Text document
Attachment:
patch_38958
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |