helpcompiler/source/HelpCompiler.cxx |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 233077b2fc9ba0924de42c94da2e01b323ee09f4
Author:     Michael Stahl <michael.st...@allotropia.de>
AuthorDate: Tue Feb 27 11:01:29 2024 +0100
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Mon Mar 4 11:06:01 2024 +0100

    helpcompiler: suppress deprecation warning
    
    Commit 77cb90532d14d5035990d078977fce7b407c4fad removed these 2 lines
    but i don't want to check if the "I can find no difference in our output
    help dir with these removed" is true also in this older branch so
    suppress the warning instead.
    
    Change-Id: I35865e3accd018462ef4d65c8c11fb914f53ac38

diff --git a/helpcompiler/source/HelpCompiler.cxx 
b/helpcompiler/source/HelpCompiler.cxx
index cdfb0fbc37cf..9cd0425c2e05 100644
--- a/helpcompiler/source/HelpCompiler.cxx
+++ b/helpcompiler/source/HelpCompiler.cxx
@@ -137,9 +137,15 @@ xmlDocPtr HelpCompiler::getSourceDocument(const fs::path 
&filePath)
         if (!cur)
         {
             static std::string fsroot('\'' + src.toUTF8() + '\'');
-
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4996)
+#endif
             xmlSubstituteEntitiesDefault(1);
             xmlLoadExtDtdDefaultValue = 1;
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif
             cur = xsltParseStylesheetFile(reinterpret_cast<const xmlChar 
*>(resEmbStylesheet.native_file_string().c_str()));
 
             int nbparams = 0;

Reply via email to