From 8531afb305a98eab8b8c67dc4e72375cbc1f7e15 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 10 Feb 2019 15:53:22 +0100 Subject: issue #6830 Message: graph_legend:39: error: Prevented to copy file /graph_legend.png onto itself! In version 1.8.14 the message "Source and Destination are the same!" was given, this message could not be suppressed as can be done with normal warnings, this was corrected in 1.8.15 but backfires in case `WARN_AS_ERROR` is set. The problem only occurs when the output directory is searched for images. Removed the message as it does not contain real information. --- src/docparser.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/docparser.cpp b/src/docparser.cpp index 4b1ce94..bcf4bac 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -335,11 +335,11 @@ static QCString findAndCopyImage(const char *fileName,DocImage::Type type, bool "could not write output image %s",qPrint(outputFile)); } } - else - { - warn(g_fileName,doctokenizerYYlineno, - "Prevented to copy file %s onto itself!\n",qPrint(inputFile)); - } + //else + //{ + // warn(g_fileName,doctokenizerYYlineno, + // "Prevented to copy file %s onto itself!\n",qPrint(inputFile)); + //} } else { -- cgit v0.12