fix warning towards clang7

warning: binding reference member 'n1_' to stack allocated parameter
'n1'

Change-Id: Ifa4c1520453e00d6fc35411fa0edbf2bf2b42708
This commit is contained in:
Noel Grandin
2018-07-26 09:36:37 +02:00
parent 96faaa6005
commit e953ce16d2

View File

@@ -57,8 +57,8 @@ struct S1 {
(void) n1; // expected-error {{unnecessary cast to void [loplugin:casttovoid]}} (void) n1; // expected-error {{unnecessary cast to void [loplugin:casttovoid]}}
(void) n2; // expected-error {{unnecessary cast to void [loplugin:casttovoid]}} (void) n2; // expected-error {{unnecessary cast to void [loplugin:casttovoid]}}
} }
int const & n1_; int const n1_;
int const & n2_; int const n2_;
}; };
struct S2 { int n; }; struct S2 { int n; };