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: [PATCH 2/2] Add some more casts (1/2)


Simon Marchi <simon.marchi@ericsson.com> writes:

> -  const struct signal_catchpoint *c = (void *) bl->owner;
> +  const struct signal_catchpoint *c =
> +    (const struct signal_catchpoint *) bl->owner;

Nit here: "=" should be put the beginning of next line, like

    const struct signal_catchpoint *c
      = (const struct signal_catchpoint *) bl->owner;

GNU Coding Standards says "When you split an expression into multiple
lines, split it before an operator, not after one."  There are multiple
instances of this problem.

OK with them fixed.

-- 
Yao (éå)


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