From: Date: Fri, 25 Jan 2013 07:59:25 +0000 (+0000) Subject: Remove warning of DCHECK_NOTNULL X-Git-Tag: accepted/tizen/5.0/unified/20181102.024921~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3297f04c13c17f4b98883b5dab3243eb708d9df5;p=platform%2Fupstream%2Fglog.git Remove warning of DCHECK_NOTNULL http://code.google.com/p/google-glog/issues/detail?id=87 git-svn-id: https://google-glog.googlecode.com/svn/trunk@127 eb4d4688-79bd-11dd-afb4-1d65580434c0 --- diff --git a/src/glog/logging.h.in b/src/glog/logging.h.in index 6939e4b..f34dbe4 100644 --- a/src/glog/logging.h.in +++ b/src/glog/logging.h.in @@ -1037,7 +1037,7 @@ const LogSeverity GLOG_0 = GLOG_ERROR; while (false) \ GLOG_MSVC_POP_WARNING() CHECK_GT(val1, val2) -#define DCHECK_NOTNULL(val) (val) +#define DCHECK_NOTNULL(val) (void)(val) #define DCHECK_STREQ(str1, str2) \ GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ diff --git a/src/windows/glog/logging.h b/src/windows/glog/logging.h index ce7e646..05aba8c 100755 --- a/src/windows/glog/logging.h +++ b/src/windows/glog/logging.h @@ -1041,7 +1041,7 @@ const LogSeverity GLOG_0 = GLOG_ERROR; while (false) \ GLOG_MSVC_POP_WARNING() CHECK_GT(val1, val2) -#define DCHECK_NOTNULL(val) (val) +#define DCHECK_NOTNULL(val) (void)(val) #define DCHECK_STREQ(str1, str2) \ GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \