Skip to content

Fix typo in compiler flag (-Woverloded-virtual → -Woverloaded-virtual)#432

Open
Germardies wants to merge 1 commit into
Raptor3um:masterfrom
Germardies:fix-configure-ac
Open

Fix typo in compiler flag (-Woverloded-virtual → -Woverloaded-virtual)#432
Germardies wants to merge 1 commit into
Raptor3um:masterfrom
Germardies:fix-configure-ac

Conversation

@Germardies

Copy link
Copy Markdown

This PR fixes a build error caused by a misspelled compiler warning flag
(-Woverloded-virtual → -Woverloaded-virtual) in configure.ac.

The incorrect flag prevents compilation on modern GCC versions:

g++: error: unrecognized command-line option '-Woverloded-virtual'

This change corrects the flag and restores compatibility. Build tested on Ubuntu 22.04.

Fix typo: -Woverloded-virtual → -Woverloaded-virtual in configure.ac

@JSanchezFDZ JSanchezFDZ left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified the fix. AX_CHECK_COMPILE_FLAG probes -Woverloaded-virtual, but the
success branch was appending the misspelled -Woverloded-virtual to
WARN_CXXFLAGS, which GCC then rejects with unrecognized command-line option,
breaking the build on modern toolchains. The one-character correction makes the
appended flag match the probed one. Correct and complete. LGTM.

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.

2 participants