This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Emit a warning for ineffective set VAR = EXP command
On May 7, 2012, at 3:35 PM, Tom Tromey wrote:
>>>>>> "Tristan" == Tristan Gingold <gingold@adacore.com> writes:
>
> Tristan> I am not opposed to disable warnings for pre/post inc/dec.
> Tristan> But this usage is dubious (the help explicitly mentions VAR=EXP !)
>
> Tristan> Opinion ?
>
> Either way is fine by me.
> I suppose it seems a little pedantic to warn about the ++ operator.
>
> Tom
What would ++ do if your current language is Ada, or Fortran? Complain about syntax error?
It would be good to clarify the documentation to say that this also works.
paul