Commit 2a1f9625 authored by Langella Olivier's avatar Langella Olivier
Browse files

bunch of warnings fixed

parent 588a5e48
......@@ -66,7 +66,7 @@ AlignmentObiwarp::privPrepareMsRunReference(const Msrun *p_msrun_ref)
}
void
AlignmentObiwarp::privAlignTwoMsRuns(const Msrun *p_msrun_ref,
AlignmentObiwarp::privAlignTwoMsRuns(const Msrun *p_msrun_ref [[maybe_unused]],
Msrun *p_msrun) const
{
qDebug() << "AlignmentObiwarp::privAlignTwoMsRuns begin";
......
......@@ -17,17 +17,20 @@ MonitorAlignmentBase::~MonitorAlignmentBase()
}
void
MonitorAlignmentBase::setTimeValues(const Msrun *pmsrun)
MonitorAlignmentBase::setTimeValues(const Msrun *pmsrun [[maybe_unused]])
{
// Do nothing by default
}
void
MonitorAlignmentBase::setTraceValues(
const Msrun *pmsrun,
const std::map<mcq_double, mcq_double> *map_bestRt_deltaRt,
const std::map<mcq_double, mcq_double> *corrected_map_bestRt_deltaRt,
const std::map<mcq_double, mcq_double> *corrected_mean_map_bestRt_deltaRt,
const std::map<mcq_double, mcq_double> *map_oldRt_smoothedDelta)
const Msrun *pmsrun [[maybe_unused]],
const std::map<mcq_double, mcq_double> *map_bestRt_deltaRt [[maybe_unused]],
const std::map<mcq_double, mcq_double> *corrected_map_bestRt_deltaRt
[[maybe_unused]],
const std::map<mcq_double, mcq_double> *corrected_mean_map_bestRt_deltaRt
[[maybe_unused]],
const std::map<mcq_double, mcq_double> *map_oldRt_smoothedDelta
[[maybe_unused]])
{
// Do nothing by default
}
......@@ -15,17 +15,20 @@ MonitorAlignmentPlot::~MonitorAlignmentPlot()
}
void
MonitorAlignmentPlot::setTimeValues(const Msrun *pmsrun)
MonitorAlignmentPlot::setTimeValues(const Msrun *pmsrun [[maybe_unused]])
{
}
void
MonitorAlignmentPlot::setTraceValues(
const Msrun *pmsrun,
const std::map<mcq_double, mcq_double> *map_bestRt_deltaRt,
const std::map<mcq_double, mcq_double> *corrected_map_bestRt_deltaRt,
const std::map<mcq_double, mcq_double> *corrected_mean_map_bestRt_deltaRt,
const std::map<mcq_double, mcq_double> *map_oldRt_smoothedDelta)
const std::map<mcq_double, mcq_double> *map_bestRt_deltaRt [[maybe_unused]],
const std::map<mcq_double, mcq_double> *corrected_map_bestRt_deltaRt
[[maybe_unused]],
const std::map<mcq_double, mcq_double> *corrected_mean_map_bestRt_deltaRt
[[maybe_unused]],
const std::map<mcq_double, mcq_double> *map_oldRt_smoothedDelta
[[maybe_unused]])
{
_mutex.lock();
qDebug() << "Add Trace Value to Monitor ALignement Plot";
......
......@@ -42,7 +42,7 @@ AlignedPeakCollectionBase::~AlignedPeakCollectionBase()
}
AlignedPeakCollectionBase::AlignedPeakCollectionBase(
const AlignedPeakCollectionBase &other)
const AlignedPeakCollectionBase &other [[maybe_unused]])
{
}
......
......@@ -40,7 +40,9 @@ AlignedPeakCollectionMap::~AlignedPeakCollectionMap()
AlignedPeakCollectionMap::AlignedPeakCollectionMap(
const AlignedPeakCollectionMap &other)
: AlignedPeakCollectionBase(other)
{
_map_post_matched_aligned_peaks = other._map_post_matched_aligned_peaks;
}
void
......@@ -85,6 +87,7 @@ AlignedPeakCollectionMap::getMsRunAlignedPeakList(const Msrun *p_msrun)
}
void
AlignedPeakCollectionMap::endMsrunQuantification(const Msrun *p_current_msrun)
AlignedPeakCollectionMap::endMsrunQuantification(const Msrun *p_current_msrun
[[maybe_unused]])
{
}
......@@ -29,8 +29,7 @@
* \brief handles a collection of aligned peaks per MSruns in memory
*/
#ifndef ALIGNEDPEAKCOLLECTIONMAP_H
#define ALIGNEDPEAKCOLLECTIONMAP_H
#pragma once
#include "alignedpeakcollectionbase.h"
class AlignedPeakCollectionMap : public AlignedPeakCollectionBase
......@@ -55,4 +54,3 @@ class AlignedPeakCollectionMap : public AlignedPeakCollectionBase
_map_post_matched_aligned_peaks;
};
#endif // ALIGNEDPEAKCOLLECTIONMAP_H
......@@ -65,6 +65,7 @@ AlignedPeakCollectionOnDisk::AlignedPeakCollectionOnDisk(
}
AlignedPeakCollectionOnDisk::AlignedPeakCollectionOnDisk(
const AlignedPeakCollectionOnDisk &other)
: AlignedPeakCollectionBase(other)
{
_peak_collection_file.setFileName(other._peak_collection_file.fileName());
}
......
......@@ -43,9 +43,9 @@ PeptideIsotope::getIsotopeLabel() const
}
void
PeptideIsotope::observed_in(const Msrun *p_msrun,
const int scan_num,
unsigned int z)
PeptideIsotope::observed_in(const Msrun *p_msrun [[maybe_unused]],
const int scan_num [[maybe_unused]],
unsigned int z [[maybe_unused]])
{
throw mcqError(
QObject::tr("ERROR in PeptideIsotope::observed_in :\nobserved_in cannot "
......
......@@ -34,7 +34,7 @@ PeptideRt::PeptideRt()
{
}
PeptideRt::PeptideRt(const PeptideRt &other)
PeptideRt::PeptideRt(const PeptideRt &other[[maybe_unused]])
{
}
......
......@@ -80,7 +80,7 @@ QuantiItemBase::writeCurrentSearchItem(MCQXmlStreamWriter *_output_stream) const
}
void
QuantiItemBase::writeOdsPeptideLine(CalcWriterInterface &writer) const
QuantiItemBase::writeOdsPeptideLine(CalcWriterInterface &writer[[maybe_unused]]) const
{
}
......@@ -146,9 +146,9 @@ QuantiItemBase::newCalcWriterInterface(const Quantificator *quantificator,
return _p_writer;
}
XicTraceBase *
QuantiItemBase::newXicTrace(Quantificator *quantificator,
Msrun *p_msrun,
const QString &prefix) const
QuantiItemBase::newXicTrace(Quantificator *quantificator [[maybe_unused]],
Msrun *p_msrun [[maybe_unused]],
const QString &prefix [[maybe_unused]]) const
{
return nullptr;
}
......@@ -56,7 +56,7 @@ xicBase::getIntensities() const
void
xicBase::fillDataArray(mcq_double *xdata,
mcq_double *ydata,
unsigned int plotsize) const
unsigned int plotsize [[maybe_unused]]) const
{
auto it = begin();
auto itend = end();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment