From e953ce16d24cff34b97940a6063704cd487fec42 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 26 Jul 2018 09:36:37 +0200 Subject: fix warning towards clang7 warning: binding reference member 'n1_' to stack allocated parameter 'n1' Change-Id: Ifa4c1520453e00d6fc35411fa0edbf2bf2b42708 --- compilerplugins/clang/test/casttovoid.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compilerplugins') diff --git a/compilerplugins/clang/test/casttovoid.cxx b/compilerplugins/clang/test/casttovoid.cxx index e82118259df9..9904c8b5a3e4 100644 --- a/compilerplugins/clang/test/casttovoid.cxx +++ b/compilerplugins/clang/test/casttovoid.cxx @@ -57,8 +57,8 @@ struct S1 { (void) n1; // expected-error {{unnecessary cast to void [loplugin:casttovoid]}} (void) n2; // expected-error {{unnecessary cast to void [loplugin:casttovoid]}} } - int const & n1_; - int const & n2_; + int const n1_; + int const n2_; }; struct S2 { int n; }; -- cgit v1.2.3