This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Fix compilation failure in parse_escape


>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:

Eli> I think this happens because host_char_to_target sets its target_c
Eli> argument only under certain conditions.  Is the following patch the
Eli> right fix?

Eli> 2009-04-15  Eli Zaretskii  <eliz@gnu.org>
Eli> 	* utils.c (parse_escape): Initialize target_char to pacify GCC.

Any value (not just -2) is ok here because it will always be overwritten.
Add a comment explaining that the initialization is to avoid a
warning -- we do this in other places.  Ok with that.

thanks,
Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]