Skip to content

Commit

Permalink
Merge pull request google#254 from DariuszOstolski/issue253
Browse files Browse the repository at this point in the history
google#253: Use MS preprocessor idiom to disable warning
  • Loading branch information
shinh authored Oct 20, 2017
2 parents 47a3fb0 + 8738325 commit 906d956
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/glog/logging.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1148,11 +1148,12 @@ public:
// http://msdn.microsoft.com/en-us/library/3tdb471s(VS.80).aspx
// Let's just ignore the warning.
#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable: 4275)
#endif
class GOOGLE_GLOG_DLL_DECL LogStream : public std::ostream {
#ifdef _MSC_VER
# pragma warning(default: 4275)
# pragma warning(pop)
#endif
public:
LogStream(char *buf, int len, int ctr)
Expand Down

0 comments on commit 906d956

Please sign in to comment.