Skip to content

Commit

Permalink
qmake: Cleanup
Browse files Browse the repository at this point in the history
Fix clang warnings that are disabled in the default build.

Change-Id: I4e773a24884db94acdc6c295d3f66da07cd8a5bd
Reviewed-by: Jörg Bornemann <[email protected]>
Reviewed-by: Albert Astals Cid <[email protected]>
  • Loading branch information
kkoehne committed Jun 5, 2019
1 parent 761f88f commit 5f30fd6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
2 changes: 0 additions & 2 deletions qmake/generators/mac/pbuilder_pbx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,6 @@ bool
ProjectBuilderMakefileGenerator::writeMakeParts(QTextStream &t)
{
ProStringList tmp;
bool did_preprocess = false;

//HEADER
const int pbVersion = pbuilderVersion();
Expand Down Expand Up @@ -736,7 +735,6 @@ ProjectBuilderMakefileGenerator::writeMakeParts(QTextStream &t)
QFile mkf(mkfile);
if(mkf.open(QIODevice::WriteOnly | QIODevice::Text)) {
writingUnixMakefileGenerator = true;
did_preprocess = true;
debug_msg(1, "pbuilder: Creating file: %s", mkfile.toLatin1().constData());
QTextStream mkt(&mkf);
writeHeader(mkt);
Expand Down
2 changes: 1 addition & 1 deletion qmake/generators/makefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ MakefileGenerator::processPrlFile(QString &file, bool baseOnly)

bool
MakefileGenerator::processPrlFileBase(QString &origFile, const QStringRef &origName,
const QStringRef &fixedBase, int slashOff)
const QStringRef &fixedBase, int /*slashOff*/)
{
return processPrlFileCore(origFile, origName, fixedBase + Option::prl_ext);
}
Expand Down
2 changes: 1 addition & 1 deletion qmake/generators/makefiledeps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ bool QMakeSourceFileInfo::findDeps(SourceFile *file)
break;
}
cpp_state = InCode;
// ... and fall through to handle buffer[x] as such.
Q_FALLTHROUGH(); // to handle buffer[x] as such.
case InCode:
// matching quotes (string literals and character literals)
if (buffer[x] == '\'' || buffer[x] == '"') {
Expand Down
2 changes: 1 addition & 1 deletion qmake/generators/projectgenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ProjectGenerator : public MakefileGenerator
void init() override;
bool writeMakefile(QTextStream &) override;

QString escapeFilePath(const QString &path) const override { Q_ASSERT(false); return QString(); }
QString escapeFilePath(const QString &) const override { Q_ASSERT(false); return QString(); }

public:
ProjectGenerator();
Expand Down
1 change: 1 addition & 0 deletions qmake/generators/win32/msvc_objectmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1990,6 +1990,7 @@ bool VCMIDLTool::parseOption(const char* option)
break;
case 0x5eb7af2: // /header filename
offset = 5;
Q_FALLTHROUGH();
case 0x0000358: // /h filename
HeaderFileName = option + offset + 3;
break;
Expand Down
2 changes: 1 addition & 1 deletion qmake/generators/win32/winmakefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ void Win32MakefileGenerator::writeObjectsPart(QTextStream &t)
t << "OBJECTS = " << valList(escapeDependencyPaths(project->values("OBJECTS"))) << endl;
}

void Win32MakefileGenerator::writeImplicitRulesPart(QTextStream &t)
void Win32MakefileGenerator::writeImplicitRulesPart(QTextStream &)
{
}

Expand Down

0 comments on commit 5f30fd6

Please sign in to comment.