From 1034ee0c091036f7d43a42b3213ffa589150e38c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 16 Nov 2016 11:10:39 +0100 Subject: Reduce noise for irrelevant warnings somewhat ...other options to avoid such irrelevant warnings can be to move code to an include file and/or to define a dummy main() accessing otherwise unreferenced entities. Change-Id: Ifd44e376b35ef68496f3aba6a3c046d684824000 --- compilerplugins/clang/test/finalprotected.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'compilerplugins') diff --git a/compilerplugins/clang/test/finalprotected.cxx b/compilerplugins/clang/test/finalprotected.cxx index b1565781af95..99fb19584a8d 100644 --- a/compilerplugins/clang/test/finalprotected.cxx +++ b/compilerplugins/clang/test/finalprotected.cxx @@ -10,25 +10,25 @@ class S final { protected: - void f(int f) { f1 = f; } // expected-error {{final class should not have protected members - convert them to private [loplugin:finalprotected]}} expected-error {{Unreferenced externally visible function definition [loplugin:unreffun]}} + void f(int f) { f1 = f; } // expected-error {{final class should not have protected members - convert them to private [loplugin:finalprotected]}} expected-error {{[loplugin:unreffun]}} int f1; // expected-error {{final class should not have protected members - convert them to private [loplugin:finalprotected]}} public: - void g(); // expected-error {{extern prototype in main file without definition [loplugin:externandnotdefined]}} expected-error {{Unreferenced function declaration [loplugin:unreffun]}} + void g(); // expected-error {{[loplugin:externandnotdefined]}} expected-error {{[loplugin:unreffun]}} int g1; private: - void h(); // expected-error {{extern prototype in main file without definition [loplugin:externandnotdefined]}} expected-error {{Unreferenced function declaration [loplugin:unreffun]}} + void h(); // expected-error {{[loplugin:externandnotdefined]}} expected-error {{[loplugin:unreffun]}} int h1; }; class S2 { protected: - void f(int f) { f1 = f; } // expected-error {{Unreferenced externally visible function definition [loplugin:unreffun]}} + void f(int f) { f1 = f; } // expected-error {{[loplugin:unreffun]}} int f1; public: - void g(); // expected-error {{extern prototype in main file without definition [loplugin:externandnotdefined]}} expected-error {{Unreferenced function declaration [loplugin:unreffun]}} + void g(); // expected-error {{[loplugin:externandnotdefined]}} expected-error {{[loplugin:unreffun]}} int g1; private: - void h(); // expected-error {{extern prototype in main file without definition [loplugin:externandnotdefined]}} expected-error {{Unreferenced function declaration [loplugin:unreffun]}} + void h(); // expected-error {{[loplugin:externandnotdefined]}} expected-error {{[loplugin:unreffun]}} int h1; }; -- cgit