From 1c110d11ae3d3181ed37c941fa7e622d332eb520 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 16 May 2018 10:28:51 +0200 Subject: Silence Wmem-access warning in OfdmGenerator --- src/OfdmGenerator.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/OfdmGenerator.cpp b/src/OfdmGenerator.cpp index 26ad7a4..9a824ec 100644 --- a/src/OfdmGenerator.cpp +++ b/src/OfdmGenerator.cpp @@ -221,7 +221,8 @@ int OfdmGenerator::process(Buffer* const dataIn, Buffer* dataOut) if (myCfr) { reference.resize(mySpacing); - memcpy(reference.data(), myFftIn, mySpacing * sizeof(FFT_TYPE)); + memcpy(reinterpret_cast(reference.data()), + myFftIn, mySpacing * sizeof(FFT_TYPE)); } fftwf_execute(myFftPlan); // IFFT from myFftIn to myFftOut @@ -232,7 +233,8 @@ int OfdmGenerator::process(Buffer* const dataIn, Buffer* dataOut) if (myCfr) { if (myMERCalcIndex == i) { before_cfr.resize(mySpacing); - memcpy(before_cfr.data(), myFftOut, mySpacing * sizeof(FFT_TYPE)); + memcpy(reinterpret_cast(reference.data()), + myFftOut, mySpacing * sizeof(FFT_TYPE)); } /* cfr_one_iteration runs the myFftPlan again at the end, and -- cgit v1.2.3