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/18015] New: ld/testplug2.c:605]: (warning) Calling 'sizeof' on 'sizeof'.


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

            Bug ID: 18015
           Summary: ld/testplug2.c:605]: (warning) Calling 'sizeof' on
                    'sizeof'.
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: dcb314 at hotmail dot com

Source code is

     || SIZE_OF_FUNC_C < sizeof EXPECTED_VIEW_LENGTH

but

#define EXPECTED_VIEW_LENGTH (sizeof (EXPECTED_VIEW) - 1)

Maybe

     || SIZE_OF_FUNC_C <  EXPECTED_VIEW_LENGTH

would be better code.

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