This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: PATCH: warn on memset with constant length 0


On 15/12/06, Manuel LÃpez-IbÃÃez <lopezibanez@gmail.com> wrote:

Why don't you use this instead ?


Wmemset
C ObjC C++ ObjC++ Var(warn_memset) Init(-1)
Warn about possible bad uses of \"memset\"


Sorry, I was thinking here that Wmemset was enabled by Wextra. Since it is enabled by Wall and those two work in different ways, then Init(-1) must be dropped. (I think, second opinions are welcome).

Cheers,

Manuel.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]