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

New commits:
commit 2838a9168bb1a321ce0d2297284e6c8cf529604c
Author:     Michael Stahl <[email protected]>
AuthorDate: Tue Feb 27 11:01:29 2024 +0100
Commit:     Michael Stahl <[email protected]>
CommitDate: Tue Feb 27 11:03:49 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 0436d9efb461..98fd7f6eb55d 100644
--- a/helpcompiler/source/HelpCompiler.cxx
+++ b/helpcompiler/source/HelpCompiler.cxx
@@ -149,9 +149,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