# HG changeset patch # User jwe # Date 1068864563 0 # Node ID 985bfd9b7dee37a0c4524ecd73138ae96b4413cc # Parent ecaec3d39a8e29da25d594cba43279ce5a2f3490 [project @ 2003-11-15 02:49:23 by jwe] diff --git a/doc/ChangeLog b/doc/ChangeLog --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-14 John W. Eaton + + * interpreter/munge-texi.cc (process_texi_input_file): + Avoid -Wshadow warnings. + 2003-08-27 John W. Eaton * refcard/Makefile.in (refcard-a4.pdf, refcard-legal.pdf, diff --git a/doc/interpreter/munge-texi.cc b/doc/interpreter/munge-texi.cc --- a/doc/interpreter/munge-texi.cc +++ b/doc/interpreter/munge-texi.cc @@ -145,16 +145,16 @@ { std::string doc_string = help_text[symbol_name]; - int i = 0; - while (doc_string[i] == ' ') - i++; + int j = 0; + while (doc_string[j] == ' ') + j++; - if (doc_string.substr (i, 15) == "-*- texinfo -*-") + if (doc_string.substr (j, 15) == "-*- texinfo -*-") { - i += 15; + j += 15; - while (isspace (doc_string[i])) - i++; + while (isspace (doc_string[j])) + j++; // Make `see also' references in functions // possible using @anchor{TAG} (new with @@ -162,7 +162,7 @@ os << "@anchor{doc-" << symbol_name << "}\n"; - os << doc_string.substr (i); + os << doc_string.substr (j); } else os << doc_string;