diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-05-16 15:20:39 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-05-16 15:20:43 +0200 |
commit | 0b0748a4be1a35673312e08196611b83a2dcb9af (patch) | |
tree | f0c4e3b5fd38ab897cace43d264f5740c9419014 /src/rlc.cpp | |
parent | 45143d270c9c2f1ce4e102fbb1c0456a8e39d787 (diff) |
tbf: Fix memset(0) on object with no trivial copy-assignment
As warned by gcc 8.1.0:
osmo-pcu/src/tbf.cpp: In constructor ‘gprs_rlcmac_tbf::gprs_rlcmac_tbf(BTS*, gprs_rlcmac_tbf_direction)’:
osmo-pcu/src/tbf.cpp:222:33: error: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct gprs_rlc’ with no trivial copy-assignment; use assignment or value-initialization instead [-Werror=class-memaccess]
memset(&m_rlc, 0, sizeof(m_rlc));
^
In file included from osmo-pcu/src/tbf.h:24,
from osmo-pcu/src/bts.h:37,
from osmo-pcu/src/tbf.cpp:22:
osmo-pcu/src/rlc.h:234:8: note: ‘struct gprs_rlc’ declared here
struct gprs_rlc {
^~~~~~~~
Change-Id: Ifb0529b9ae6cd4300e5cbbd9151054792edbfe06
Diffstat (limited to 'src/rlc.cpp')
0 files changed, 0 insertions, 0 deletions