https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78068
David Malcolm <dmalcolm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |69968 --- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> --- I had a go at fixing this by introducing a "require_close_matches" flag to best_match (When set, it would require an edit distance of 1), and turning it on for just this warning. Unfortunately this broke the scanf<->sacnf transposition detection in one of the testcases. Maybe this would be a valid approach if we implemented transposition handling when computing the edit distance. (transposition-handling is PR 69968). Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69968 [Bug 69968] RFC: Use Damerau-Levenshtein within spellcheck.c, rather than Levenshtein