Skip to content

Conversation

@mbuzdalov
Copy link

In some build environments, such as Gentoo, -Woverloaded-virtual is enabled by default, which produces an immense amount of warnings (X was hidden by Y) when compiling PrusaSlicer. Most of them come from libslic3r/Config.hpp, and here from two methods:

  • serialize, which are two different things (the main virtual std::string serialize(), and the private template method apparently used by cereal)
  • operator ==, for which there is a base config virtual method and a plenty of non-virtual specific overloads.

This PR eliminates most if not all of these warnings by introducing using directives where necessary. To the best of my understanding, this changes exactly nothing in the binaries and should be safe.

@mbuzdalov mbuzdalov changed the title Add using for some virtual methods in libslic3r/Config.hpp Reduce warnings stemming from libslic3r/Config.hpp Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant