[Libreoffice-commits] core.git: compilerplugins/clang
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Jul 26 07:38:39 UTC 2018
compilerplugins/clang/test/casttovoid.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit e953ce16d24cff34b97940a6063704cd487fec42
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Jul 26 09:36:37 2018 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Jul 26 09:37:35 2018 +0200
fix warning towards clang7
warning: binding reference member 'n1_' to stack allocated parameter
'n1'
Change-Id: Ifa4c1520453e00d6fc35411fa0edbf2bf2b42708
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; };
More information about the Libreoffice-commits
mailing list