Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • L libxml2
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 91
    • Issues 91
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • libxml2
  • Merge requests
  • !195

xmlversion.h.in: Support marking APIs as deprecated on Visual Studio too

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Chun-wei Fan requested to merge fix-python-msvc into master Nov 18, 2022
  • Overview 6
  • Commits 2
  • Pipelines 4
  • Changes 2

Hi,

From the commit message:

Add an implementation of XML_IGNORE_DEPRECATION_WARNINGS in libxml_wrap.h and add a corresponding XML_POP_WARNINGS implementation for Visual Studio, so that we can silence deprecation warnings when we attempt to build the Python bindings with Visual Studio.

Originally found when building the Python bindings in 2.10.3 where the build broke because some incorrect macros were defined (fixed later in the master branch. I will backport this MR in the 2.10 branch if this one is deemed ok.

This attempts to expand the support to display deprecation warnings from the compiler on Visual Studio 2005 or later when one attempts to use an API that has been marked deprecated with XML_DEPRECATED.

With blessings, thank you!

Edited Nov 21, 2022 by Chun-wei Fan
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix-python-msvc