warning: saved_conditional may be used uninitialized

Open
#13 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp
Domain
build-system

Research direction

Start by inspecting actions.hpp around cond_phrase_push and the call site in src/phrase_element_grammar.cpp:41. Reproduce the warning with the documentation build, trace the saved_conditional initialization path, and consider the issue done when the build no longer reports this warning.

Written by the indexing model from the issue text.

Description

We get this warning every time we build the docs:

    inlined from ‘void quickbook::quickbook_grammar::impl::init_phrase_elements()’ at /home/alandefreitas/Documents/Code/C++/boost/tools/quickbook/src/phrase_element_grammar.cpp:41:65:
/home/alandefreitas/Documents/Code/C++/boost/tools/quickbook/src/actions.hpp:184:12: warning: ‘<unnamed>.quickbook::cond_phrase_push::saved_conditional’ may be used uninitialized [-Wmaybe-uninitialized]
  184 |     struct cond_phrase_push : scoped_action_base
      |            ^~~~~~~~~~~~~~~~
Dominant language
C++
Stars
15
Forks
34
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/quickbook

All issues in boostorg/quickbook

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.