Merge pull request #2119 from ngie-eign:clang-wunused-private-field
PiperOrigin-RevId: 233762751
This commit is contained in:
		@@ -982,6 +982,8 @@ class Unprintable {
 | 
			
		||||
  Unprintable() : c_('a') {}
 | 
			
		||||
 | 
			
		||||
  bool operator==(const Unprintable& /* rhs */) const { return true; }
 | 
			
		||||
  // -Wunused-private-field: dummy accessor for `c_`.
 | 
			
		||||
  char dummy_c() { return c_; }
 | 
			
		||||
 private:
 | 
			
		||||
  char c_;
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
@@ -964,6 +964,8 @@ INSTANTIATE_TEST_SUITE_P(StatefulNamingFunctor, StatefulNamingTest, Range(0, 5),
 | 
			
		||||
class Unstreamable {
 | 
			
		||||
 public:
 | 
			
		||||
  explicit Unstreamable(int value) : value_(value) {}
 | 
			
		||||
  // -Wunused-private-field: dummy accessor for `value_`.
 | 
			
		||||
  const int& dummy_value() const { return value_; }
 | 
			
		||||
 | 
			
		||||
 private:
 | 
			
		||||
  int value_;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user