Skip to content

non static member shadows #144

@bmagistro

Description

@bmagistro

When compiling with clang 19.1.7 on Alma with -Werror and a number of other flags (we run with most warnings enabled), the line https://github.com/boostorg/program_options/blob/develop/include/boost/program_options/parsers.hpp#L162 was flagged with error: non-static data memeber 'm_desc' of 'basic_command_line_parser' shadows member inherited from type 'cmdline' [-Werror, -Wshadow-field]. We opted to add a local patch to suppress this using pragma push/pop at the above location. Someone with more familiarity with the code may have a more appropriate solution. If the push/pop is the desired solution, happy to submit a PR with that change included.

Env:
Alma 9.6
Boost 1.88.0 via cmake
clang 19.1.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions