Casting to (void) was bad because the return value of DCHECK_NOTNULL
cannot be used.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@128
eb4d4688-79bd-11dd-afb4-
1d65580434c0
while (false) \
GLOG_MSVC_POP_WARNING() CHECK_GT(val1, val2)
-#define DCHECK_NOTNULL(val) (void)(val)
+// You may see warnings in release mode if you don't use the return
+// value of DCHECK_NOTNULL. Please just use DCHECK for such cases.
+#define DCHECK_NOTNULL(val) (val)
#define DCHECK_STREQ(str1, str2) \
GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \
while (false) \
GLOG_MSVC_POP_WARNING() CHECK_GT(val1, val2)
-#define DCHECK_NOTNULL(val) (void)(val)
+// You may see warnings in release mode if you don't use the return
+// value of DCHECK_NOTNULL. Please just use DCHECK for such cases.
+#define DCHECK_NOTNULL(val) (val)
#define DCHECK_STREQ(str1, str2) \
GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \