Fix #10865 compiler warnings.

This commit is contained in:
Richard Heck 2017-12-15 23:54:50 -05:00
parent 81cf4e971d
commit 08010eba51

View File

@ -381,9 +381,9 @@ static void build_script(string const & doc_fname,
// If two formats share the same extension we may get identical names
if (outfile == infile && conv.result_file().empty()) {
TempFile tempfile(addExtension("gconvertXXXXXX", conv.To()->extension()));
tempfile.setAutoRemove(false);
outfile = tempfile.name().toFilesystemEncoding();
TempFile tmpfile(addExtension("gconvertXXXXXX", conv.To()->extension()));
tmpfile.setAutoRemove(false);
outfile = tmpfile.name().toFilesystemEncoding();
}
if (!theConverters().checkAuth(conv, doc_fname))