mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-17 01:49:55 +00:00
Fix compiler warnings
All are harmless but for the sake of clarity have fixed them all bar a couple; - Lucene grumbles about signed/unsigned conversion which is/isn't valid depending upon the version of CLucene you compile with. Either way it is harmless. - QxtScheduleView has a bunch of issues, but since it is a third party widget its better to leave it unchanged.
This commit is contained in:
@@ -70,6 +70,10 @@ RideFile *TxtFileReader::openRideFile(QFile &file, QStringList &errors, QList<Ri
|
||||
bool metric = true; // are the values in metric or imperial?
|
||||
QDateTime startTime; // parsed from filename
|
||||
|
||||
// just to quieten the compiler, since we don't seem to
|
||||
// use the metric bool anywhere in the code at present
|
||||
if (metric) { }
|
||||
|
||||
// Lets make sure we can open the file
|
||||
if (!file.open(QFile::ReadOnly)) {
|
||||
errors << ("Could not open ride file: \"" + file.fileName() + "\"");
|
||||
|
||||
Reference in New Issue
Block a user