From 9a0acda2c9aee63f265e8ddd5012263daa3b24c5 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Sat, 13 Jun 2020 20:40:03 +0200 Subject: [PATCH] ClangFormat: Fix warning Change-Id: Ifdf4bfb7662017b2ba2e28074808919f7a726a8a Reviewed-by: Christian Kandeler --- src/plugins/clangformat/clangformatplugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/clangformat/clangformatplugin.cpp b/src/plugins/clangformat/clangformatplugin.cpp index 561b7e888ec..9b76a0862ff 100644 --- a/src/plugins/clangformat/clangformatplugin.cpp +++ b/src/plugins/clangformat/clangformatplugin.cpp @@ -153,7 +153,12 @@ bool ClangFormatPlugin::initialize(const QStringList &arguments, QString *errorS } return true; #else +#ifdef _MSC_VER +#pragma message( \ + "ClangFormat: building dummy plugin due to unmodified Clang, see README.md for more info") +#else #warning ClangFormat: building dummy plugin due to unmodified Clang, see README.md for more info +#endif *errorString = "Disabling ClangFormat plugin as it has not been built against a modified Clang's libFormat." "For more information see the Qt Creator README at " "https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/README.md";