diff --git a/src/glog/logging.h.in b/src/glog/logging.h.in index 1e552fc1a..8901b9cdc 100644 --- a/src/glog/logging.h.in +++ b/src/glog/logging.h.in @@ -1128,7 +1128,7 @@ class GOOGLE_GLOG_DLL_DECL LogStreamBuf : public std::streambuf { } // This effectively ignores overflow. - virtual int_type overflow(int_type ch) { + int_type overflow(int_type ch) { return ch; } diff --git a/src/windows/glog/logging.h b/src/windows/glog/logging.h index e111bf07c..f42d936f6 100755 --- a/src/windows/glog/logging.h +++ b/src/windows/glog/logging.h @@ -1129,7 +1129,7 @@ class GOOGLE_GLOG_DLL_DECL LogStreamBuf : public std::streambuf { } // This effectively ignores overflow. - virtual int_type overflow(int_type ch) { + int_type overflow(int_type ch) { return ch; }