You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by zy...@apache.org on 2021/06/09 08:04:04 UTC
[incubator-brpc] branch master updated: fix warning in gcc8+
This is an automated email from the ASF dual-hosted git repository.
zychen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push:
new b39fc76 fix warning in gcc8+
new e197f33 Merge pull request #1381 from stdpain/master
b39fc76 is described below
commit b39fc766abf16e52a000781e1b3bb4adaa041475
Author: stdpain <dr...@gmail.com>
AuthorDate: Wed Apr 14 15:41:24 2021 +0800
fix warning in gcc8+
---
src/bvar/detail/series.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bvar/detail/series.h b/src/bvar/detail/series.h
index b12b7c6..3ceb913 100644
--- a/src/bvar/detail/series.h
+++ b/src/bvar/detail/series.h
@@ -128,7 +128,7 @@ private:
// is_pod does not work for gcc 3.4
if (butil::is_integral<T>::value ||
butil::is_floating_point<T>::value) {
- memset(_array, 0, sizeof(_array));
+ memset(static_cast<void*>(_array), 0, sizeof(_array));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org