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/16014] New: Coding error: 2 * sizeof( sizeof())


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

            Bug ID: 16014
           Summary: Coding error: 2 * sizeof( sizeof())
           Product: gdb
           Version: 7.6
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: dcb314 at hotmail dot com

I got the static analysis tool "cppcheck" to say

[gdb-7.6.1/gdb/dwarf2read.c:2970]: (warning) Calling 'sizeof' on 'sizeof'.
[gdb-7.6.1/gdb/gdbserver/tracepoint.c:5994]: (warning) Calling 'sizeof' on
'sizeof'.

Suggest remove one of the sizeofs, in each case.

-- 
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]