diff options
author | Miguel Costa <miguel.costa@qt.io> | 2019-01-14 14:10:53 +0100 |
---|---|---|
committer | Miguel Costa <miguel.costa@qt.io> | 2019-01-15 08:55:37 +0000 |
commit | da4f743763ab1515e46c8919cebd174d3dc32907 (patch) | |
tree | 2e54c2b23abc2c401febad6fcbe83af0fd6f54a8 | |
parent | 95ff8ee1dfd7fafb2d574d2da973dd899cdf9e21 (diff) |
Don't show rcc warnings when listing resources
When running rcc at the start of build to list the contents of resource
files, redirect stderr to null to suppress any warnings. As rcc will be
invoked again as part of the actual build, this prevents the same
warning messages from being shown twice (e.g. in case of an empty file).
Change-Id: I149ad189e740b070f9becbbed4d8b6dae3312740
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
-rw-r--r-- | src/qtmsbuild/qtrcc.targets | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qtmsbuild/qtrcc.targets b/src/qtmsbuild/qtrcc.targets index 8fb6df4b..5b8e6875 100644 --- a/src/qtmsbuild/qtrcc.targets +++ b/src/qtmsbuild/qtrcc.targets @@ -67,7 +67,7 @@ <!--// Parse QRC --> <Exec Condition="'@(QtRcc)' != ''" - Command="%(QtRcc.QTDIR)\bin\rcc.exe --list %(QtRcc.Identity) > $(IntDir)rcc_list.txt"/> + Command="%(QtRcc.QTDIR)\bin\rcc.exe --list %(QtRcc.Identity) > $(IntDir)rcc_list.txt 2> nul"/> <ReadLinesFromFile Condition="'@(QtRcc)' != '' AND Exists('$(IntDir)rcc_list.txt')" File="$(IntDir)rcc_list.txt"> <Output TaskParameter="Lines" ItemName="res_file"/> |