diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2024-02-27 11:01:29 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2024-02-27 11:03:49 +0100 |
commit | 2838a9168bb1a321ce0d2297284e6c8cf529604c (patch) | |
tree | 70f7ff60c3dd9b3a2e6ab05f19ff208bbedb0fe3 | |
parent | 901c1a6a00ed9de4953f7027926b63eeabc9a8b4 (diff) |
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
-rw-r--r-- | helpcompiler/source/HelpCompiler.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
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; |