2006-11-24 10:56:53

by David Binderman

[permalink] [raw]
Subject: kernel/power/disk.c(41): remark #593: variable "error" was set but never used


Hello there,

I just tried to compile Linux kernel 2.6.18.3 with the Intel C
C compiler.

The compiler said

1.

kernel/power/disk.c(41): remark #593: variable "error" was set but never
used

The source code is

int error = 0;

2.

kernel/power/disk.c(165): remark #593: variable "error" was set but never
used

The source code is

int error;

I have checked the source code and I agree with the compiler.
Suggest delete local variables.

Regards

David Binderman

_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters!
http://www.msn.co.uk/newsletters


2006-11-24 11:18:58

by Jesper Juhl

[permalink] [raw]
Subject: Re: kernel/power/disk.c(41): remark #593: variable "error" was set but never used

On 24/11/06, d binderman <[email protected]> wrote:
>
> Hello there,
>
> I just tried to compile Linux kernel 2.6.18.3 with the Intel C
> C compiler.
>
> The compiler said
>
> 1.
>
> kernel/power/disk.c(41): remark #593: variable "error" was set but never
> used
>
> The source code is
>
> int error = 0;
>
> 2.
>
> kernel/power/disk.c(165): remark #593: variable "error" was set but never
> used
>
> The source code is
>
> int error;
>
> I have checked the source code and I agree with the compiler.
> Suggest delete local variables.
>

I suggest you send a patch :-)

--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html