[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

build failures from gcc warning about memset

From: Julian Graham
Subject: build failures from gcc warning about memset
Date: Sun, 25 Oct 2009 13:16:40 -0400

Hi all,

I've been fixing and reverting this locally for the past month or so,
and I'm not sure if anyone else has seen this, but it looks like
there's some static analysis code that's been added to GCC 4.3.3 that
warns about code paths that could produce a call to `memset' with a
size parameter of zero, and which causes the build of `master' to
fail. The exact text of the warning is:

  /usr/include/bits/string3.h:82: warning: memset used with constant
zero length parameter; this could be due to transposed parameters

Find attached a tiny patch that adds a check on the size parameter in
`scm_gc_calloc', which seems to satisfy the compiler.


Attachment: 0001-Resolve-warning-in-gcc-4.3-about-transposed-paramete.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]