public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18015] New: ld/testplug2.c:605]: (warning) Calling 'sizeof' on 'sizeof'.
@ 2015-02-24 22:07 dcb314 at hotmail dot com
  2020-04-06 17:21 ` [Bug gdb/18015] " ssbssa at sourceware dot org
  0 siblings, 1 reply; 2+ messages in thread
From: dcb314 at hotmail dot com @ 2015-02-24 22:07 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug gdb/18015] ld/testplug2.c:605]: (warning) Calling 'sizeof' on 'sizeof'.
  2015-02-24 22:07 [Bug gdb/18015] New: ld/testplug2.c:605]: (warning) Calling 'sizeof' on 'sizeof' dcb314 at hotmail dot com
@ 2020-04-06 17:21 ` ssbssa at sourceware dot org
  0 siblings, 0 replies; 2+ messages in thread
From: ssbssa at sourceware dot org @ 2020-04-06 17:21 UTC (permalink / raw)
  To: gdb-prs

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

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
                 CC|                            |ssbssa at sourceware dot org
             Status|NEW                         |RESOLVED

--- Comment #1 from Hannes Domani <ssbssa at sourceware dot org> ---
Dup.

*** This bug has been marked as a duplicate of bug 20097 ***

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-06 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-24 22:07 [Bug gdb/18015] New: ld/testplug2.c:605]: (warning) Calling 'sizeof' on 'sizeof' dcb314 at hotmail dot com
2020-04-06 17:21 ` [Bug gdb/18015] " ssbssa at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).