boostorg / boostorg/program_options
non static member shadows
- Langage dominant
- C++
- Étoiles
- 136
- Forks
- 117
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Inspectez include/boost/program_options/parsers.hpp autour de la ligne 162, où clang 19.1.7 signale l’avertissement de masquage d’un membre hérité pour m_desc. Reproduisez l’avertissement sur Alma 9.6 avec Boost 1.88.0 et les indicateurs d’avertissement indiqués, puis confirmez que la modification choisie supprime l’erreur -Wshadow-field sans modifier le comportement de l’analyse de la ligne de commande.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100