From bd9fd6227bc64db75f0c3a97a6c47ac18fefea05 Mon Sep 17 00:00:00 2001 From: Bram Veenboer <bram.veenboer@gmail.com> Date: Thu, 6 Feb 2020 11:51:49 +0100 Subject: [PATCH] Fix compiler warnings in methods that are todo --- Station.cc | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Station.cc b/Station.cc index a7af83c9..8825a1a5 100644 --- a/Station.cc +++ b/Station.cc @@ -101,16 +101,19 @@ matrix22c_t Station::elementResponse(real_t time, real_t freq, // else // return itsAntenna->response(freq, itrf2field(direction)); // return itsElementResponse->response(freq, direction); + matrix22c_t value; + return value; } matrix22c_t Station::response(real_t time, real_t freq, const vector3r_t &direction, real_t freq0, const vector3r_t &station0, const vector3r_t &tile0, const bool rotate) const { - Antenna::Options options = { - .freq0 = freq0, - .station0 = &station0, - .tile0 = &tile0}; + // TODO + //Antenna::Options options = { + // .freq0 = freq0, + // .station0 = &station0, + // .tile0 = &tile0}; return itsAntenna->response(time, freq, direction); } @@ -118,10 +121,11 @@ diag22c_t Station::arrayFactor(real_t time, real_t freq, const vector3r_t &direction, real_t freq0, const vector3r_t &station0, const vector3r_t &tile0) const { - Antenna::Options options = { - .freq0 = freq0, - .station0 = &station0, - .tile0 = &tile0}; + // TODO + //Antenna::Options options = { + // .freq0 = freq0, + // .station0 = &station0, + // .tile0 = &tile0}; return itsAntenna->arrayFactor(time, freq, direction); } -- GitLab