[Top][All Lists]

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

Re: cppcheck error in opendir.c

From: Arno Onken
Subject: Re: cppcheck error in opendir.c
Date: Wed, 20 Mar 2013 11:38:12 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

On 03/19/2013 08:57 PM, Paul Eggert wrote:
> On 03/19/13 11:59, Arno Onken wrote:
>> cppcheck version 1.58 reports the following error on the latest
>> Savannah respository checkout of gnulib (last change Tue, 19 Mar 2013
>> 17:47:12 +0000):
>> [lib/opendir.c:140]: (error) Mismatching allocation and deallocation: dirp
> I don't see why this diagnostic was generated.
> Maybe a bug in cppcheck?

I reported this on the cppcheck bug tracker and a solution was proposed.
The following code in opendir.c silences cppcheck:

#if !defined(HAVE_OPENDIR) && defined(REPLACE_FCHDIR)
#error Invalid configuration!!


reply via email to

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