2003-09-22 06:15:45

by John Cherry

[permalink] [raw]
Subject: IA32 - 3 New warnings (gcc 3.2.2)

drivers/net/wan/wanxl.c:34: warning: `version' defined but not used
fs/smbfs/proc.c:216: warning: initialization from incompatible pointer type
fs/smbfs/proc.c:217: warning: initialization from incompatible pointer type


2003-09-22 06:29:35

by Andrew Morton

[permalink] [raw]
Subject: Re: IA32 - 3 New warnings (gcc 3.2.2)

John Cherry <[email protected]> wrote:
>
> fs/smbfs/proc.c:216: warning: initialization from incompatible pointer type
> fs/smbfs/proc.c:217: warning: initialization from incompatible pointer type

doh.

--- 25-power4/fs/smbfs/proc.c~smbfs-nls-fix 2003-09-21 23:29:42.000000000 -0700
+++ 25-power4-akpm/fs/smbfs/proc.c 2003-09-21 23:30:17.000000000 -0700
@@ -212,12 +212,9 @@ static int char2uni(const unsigned char
}

static struct nls_table unicode_table = {
- "unicode",
- uni2char,
- char2uni,
- NULL, /* not used by smbfs */
- NULL,
- NULL, /* not a module */
+ .charset = "unicode",
+ .uni2char = uni2char,
+ .char2uni = char2uni,
};

/* ----------------------------------------------------------- */

_