Re: C++ PATCH to -Wunused with C++17 structured bindings

2017-05-24 Thread Jason Merrill
On Wed, May 24, 2017 at 2:48 AM, Jakub Jelinek wrote: > On Tue, May 23, 2017 at 09:45:10PM -0400, Jason Merrill wrote: >> Someone on IRC complained that there was no way to suppress -Wunused >> on structured bindings. It seemed to me that the way the feature >> works, we shouldn't warn about the

Re: C++ PATCH to -Wunused with C++17 structured bindings

2017-05-23 Thread Jakub Jelinek
On Tue, May 23, 2017 at 09:45:10PM -0400, Jason Merrill wrote: > Someone on IRC complained that there was no way to suppress -Wunused > on structured bindings. It seemed to me that the way the feature > works, we shouldn't warn about the bindings individually; users need > to give each of the subo

C++ PATCH to -Wunused with C++17 structured bindings

2017-05-23 Thread Jason Merrill
Someone on IRC complained that there was no way to suppress -Wunused on structured bindings. It seemed to me that the way the feature works, we shouldn't warn about the bindings individually; users need to give each of the subobjects a name even if they're only interested in using one of them. So