Skip to content

Commit

Permalink
Actively discard return value of qtConfGetNextCommandlineArg
Browse files Browse the repository at this point in the history
Calling a qmake replace function without assignment is undefined
behavior.

This amends 11ae0e7.

Change-Id: Ie716f295275d1ba79a217745b332a8eca04b355d
Reviewed-by: Oliver Wolff <[email protected]>
  • Loading branch information
jobor committed Mar 1, 2019
1 parent 11c7287 commit 20063cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkspecs/features/qt_configure.prf
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ defineTest(qtConfParseCommandLine) {
qtConfAddWarning("Command line option -skip is only effective in top-level builds.")
skipOptionWarningAdded = 1
}
$$qtConfGetNextCommandlineArg()
val = $$qtConfGetNextCommandlineArg()
next()
}

Expand Down

0 comments on commit 20063cf

Please sign in to comment.