mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-19 04:00:45 +00:00
Make warnings fail regression tests, fix warnings.
This commit is contained in:
parent
609e02b2c5
commit
e67aae78cf
@ -1142,7 +1142,8 @@ void gAHIChart::customCalc(Day *day, QVector<SummaryChartSlice> &list)
|
|||||||
case 1:
|
case 1:
|
||||||
calc->wavg_sum += value;
|
calc->wavg_sum += value;
|
||||||
calc->divisor += hours;
|
calc->divisor += hours;
|
||||||
default:
|
break;
|
||||||
|
case 2:
|
||||||
calc->avg_sum += value;
|
calc->avg_sum += value;
|
||||||
calc->cnt++;
|
calc->cnt++;
|
||||||
break;
|
break;
|
||||||
|
@ -802,7 +802,8 @@ QByteArray gUncompress(const QByteArray & data)
|
|||||||
|
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case Z_NEED_DICT:
|
case Z_NEED_DICT:
|
||||||
ret = Z_DATA_ERROR; // and fall through
|
ret = Z_DATA_ERROR;
|
||||||
|
// fall through
|
||||||
case Z_DATA_ERROR:
|
case Z_DATA_ERROR:
|
||||||
case Z_MEM_ERROR:
|
case Z_MEM_ERROR:
|
||||||
Q_UNUSED(ret)
|
Q_UNUSED(ret)
|
||||||
|
@ -2350,10 +2350,10 @@ void Daily::updateCube()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Daily::on_toggleGraphs_clicked(bool checked)
|
void Daily::on_toggleGraphs_clicked(bool /*checked*/)
|
||||||
{
|
{
|
||||||
QString s;
|
QString s;
|
||||||
QIcon *icon=checked ? icon_off : icon_on;
|
//QIcon *icon=checked ? icon_off : icon_on;
|
||||||
if (ui->graphCombo == nullptr )
|
if (ui->graphCombo == nullptr )
|
||||||
qDebug() << "ToggleGraphs clicked with null graphCombo ptr";
|
qDebug() << "ToggleGraphs clicked with null graphCombo ptr";
|
||||||
else
|
else
|
||||||
@ -2414,10 +2414,10 @@ void Daily::on_eventsCombo_activated(int index)
|
|||||||
GraphView->redraw();
|
GraphView->redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Daily::on_toggleEvents_clicked(bool checked)
|
void Daily::on_toggleEvents_clicked(bool /*checked*/)
|
||||||
{
|
{
|
||||||
QString s;
|
QString s;
|
||||||
QIcon *icon=checked ? icon_on : icon_off;
|
//QIcon *icon=checked ? icon_on : icon_off;
|
||||||
|
|
||||||
if (ui->toggleEvents == nullptr )
|
if (ui->toggleEvents == nullptr )
|
||||||
qDebug() << "ToggleEvents clicked with null toggleEvents ptr";
|
qDebug() << "ToggleEvents clicked with null toggleEvents ptr";
|
||||||
|
@ -443,8 +443,8 @@ test {
|
|||||||
CONFIG += console debug
|
CONFIG += console debug
|
||||||
CONFIG -= app_bundle
|
CONFIG -= app_bundle
|
||||||
!win32 { # add memory checking on Linux and macOS test builds
|
!win32 { # add memory checking on Linux and macOS test builds
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope
|
QMAKE_CFLAGS += -Werror -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope
|
QMAKE_CXXFLAGS += -Werror -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user