Wireshark-dev: Re: [Wireshark-dev] implicite declaration when adding plugin !!
From: Alexis La Goutte <[email protected]>
Date: Mon, 5 May 2014 16:53:17 +0200
Hi,


On Mon, May 5, 2014 at 4:48 PM, khemis haythem <[email protected]> wrote:
>
>
> Khemis Haythem
> Adresse : Boite Postale 101  4118, Mednine
> GSM : +216 55 69 19 90
> E-mail : [email protected]
> Statut : Élève ingénieur
> Spécialité : Génie des Communications et des Réseaux
> Ecole : Ecole National d'Ingénieurs de Gabes
>  hello,
> when i trying to add a plugin, i get this error message:
> packet-xxxx.c : In function 'dissect_xxxxx' :
> packet-xxxx.c : 1164:13: error: implicite declaration of function
> 'tvb_get_gunit16' [ -Werror=implicit-function-declaration]
> packet-xxxx.c : 1177:1: error: implicite declaration of function
> 'tvb_get_gunit8' [ -Werror=implicit-function-declaration]
Because it is tvb_get_guint8 (and no guint8) look README.dev guide...
> packet-xxxx.c :1204:12: error: invalid storage class for function
> 'dissect_xxxxreas'
> also i get another error that i can't solve it :
> packet-xxxx.c: 1204:41 error: declaration of 'tvb' shadows a parameter [ -
> Werror=shadow]
> packet-xxxx.c: 1135:42: error: shadowed declaration is here [
> -Werror=shadow]
> packet-xxxx.c: 1204:41 error: declaration of 'pinfo' shadows a parameter [ -
> Werror=shadow]
> packet-xxxx.c: 1135:42: error: shadowed declaration is here [
> -Werror=shadow]
> packet-xxxx.c: 1204:41 error: declaration of 'tree' shadows a parameter [ -
> Werror=shadow]
> packet-xxxx.c: 1135:42: error: shadowed declaration is here [
> -Werror=shadow]
> packet-xxxx.c: 1204:41 error: declaration of 'data' shadows a parameter [ -
> Werror=shadow]
> packet-xxxx.c: 1135:42: error: shadowed declaration is here [
> -Werror=shadow]
Rename your variable


>
> what can i do to solve these errors ? who can help me ?
> haythem.
>
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <[email protected]>
> Archives:    http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>              mailto:[email protected]?subject=unsubscribe