summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-26 09:36:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-26 09:37:35 +0200
commite953ce16d24cff34b97940a6063704cd487fec42 (patch)
tree1ae1ebd778fe6bc05f7b91fefc2972c8a9c9ef3b /compilerplugins
parent96faaa6005465661d74b6dbf4879c43b85c68a55 (diff)
fix warning towards clang7
warning: binding reference member 'n1_' to stack allocated parameter 'n1' Change-Id: Ifa4c1520453e00d6fc35411fa0edbf2bf2b42708
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/test/casttovoid.cxx4
1 files changed, 2 insertions, 2 deletions
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; };