Skip to content

Commit

Permalink
Merge pull request apache#1381 from stdpain/master
Browse files Browse the repository at this point in the history
fix warning in gcc8+
  • Loading branch information
chenzhangyi authored Jun 9, 2021
2 parents 60d6a2f + b39fc76 commit e197f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bvar/detail/series.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class SeriesBase {
// 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));
}
}

Expand Down

0 comments on commit e197f33

Please sign in to comment.