public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13325] New: [tree-ssa] Weird warning on memcpy(d, s, 0)
@ 2003-12-05 22:29 falk at debian dot org
  2003-12-05 22:53 ` [Bug c/13325] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: falk at debian dot org @ 2003-12-05 22:29 UTC (permalink / raw)
  To: gcc-bugs

gcc (GCC) 3.5-tree-ssa 20031205 (merged 20031130) on alphaev68-unknown-linux-gnu

falk@juist:/tmp% cat test.c
void *memcpy(void *dest, const void *src, __SIZE_TYPE__ n);
void f (void *dest, const void *src) {
    memcpy (dest, src, 0);
}

falk@juist:/tmp% gcc -c -W test.c 
test.c: In function `f':

test.c:3: warning: statement with no effect

Well yeah, it has no effect, but things like these are often created by macros.
It seems unlikely that it marks a real mistake. Similar for memcmp etc.

-- 
           Summary: [tree-ssa] Weird warning on memcpy(d, s, 0)
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13325


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

end of thread, other threads:[~2004-02-04  2:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-05 22:29 [Bug c/13325] New: [tree-ssa] Weird warning on memcpy(d, s, 0) falk at debian dot org
2003-12-05 22:53 ` [Bug c/13325] " pinskia at gcc dot gnu dot org
2003-12-05 23:48 ` [Bug middle-end/13325] " pinskia at gcc dot gnu dot org
2004-02-03  6:03 ` rth at gcc dot gnu dot org
2004-02-04  2:24 ` cvs-commit at gcc dot gnu dot org
2004-02-04  2:31 ` rth at gcc dot gnu 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).