This is the mail archive of the gdb-prs@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]

[Bug gdb/17816] New: gdb/m32c-tdep.c:1244: Same expression in both branches of ternary operator


https://sourceware.org/bugzilla/show_bug.cgi?id=17816

            Bug ID: 17816
           Summary: gdb/m32c-tdep.c:1244: Same expression in both branches
                    of ternary operator
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: dcb314 at hotmail dot com

>From today's trunk of gdb:

[binutils-gdb/gdb/m32c-tdep.c:1244]: (style) Same expression in both branches
of ternary operator.

Source code is

    case 0x0: sd.reg = (size == 1 ? &st->r0 : &st->r0); break;

Suggest code rework.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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