Wireshark-dev: Re: [Wireshark-dev] glib include directory shpuld be added to the cppcheck inclu
From: Guy Harris <[email protected]>
Date: Mon, 19 May 2014 14:41:36 -0700
On May 19, 2014, at 2:36 PM, Toralf Förster <[email protected]> wrote:

> Otherwise cppcheck reports wrongly :    [epan/wmem/wmem_map.c:39]: (error) syntax error
> 
> diff --git a/tools/cppcheck/includes b/tools/cppcheck/includes
> index 99edc71..61c0973 100644
> --- a/tools/cppcheck/includes
> +++ b/tools/cppcheck/includes
> @@ -3,3 +3,4 @@
> ./tools/lemon/
> ./ui/
> ./wiretap/
> +/usr/include/glib-2.0/

This presumably needs to be generated from includes.in by the configure script, as there's no guarantee that the include directory will be under /usr/include.