From da052ae8213e3795e7a07448f360c804a02494b2 Mon Sep 17 00:00:00 2001 From: vitaut Date: Sat, 21 Mar 2015 07:53:39 -0700 Subject: [PATCH] Fix bogus warnings --- format.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/format.cc b/format.cc index 86fac25a..b0f71c6c 100644 --- a/format.cc +++ b/format.cc @@ -176,6 +176,9 @@ int safe_strerror( char *&buffer_; std::size_t buffer_size_; + // A noop assignment operator to avoid bogus warnings. + void operator=(const StrError &) {} + // Handle the result of XSI-compliant version of strerror_r. int handle(int result) { // glibc versions before 2.13 return result in errno.