Re: [PATCH] Remove __const__ due to GCC warning

H. Peter Anvin (hpa@zytor.com)
22 Apr 2003 12:14:49 -0700


Followup to: <20030422160953.GF7260@debian>
By author: Art Haas <ahaas@airmail.net>
In newsgroup: linux.dev.kernel
>
> Hi.
>
> These two patches remove a warning GCC produces about using __const__
> where it doesn't matter. I've built numerous kernels with these patches
> and things seem to work fine, so I thought I'd send them out. Maybe GCC
> is right, or maybe it isn't ...
>
> BTW, the warning appears if '-W' is added to the compile commands.
>

This seems like the wrong approach. Instead this presumably should be
__attribute__((const)) instead.

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
Architectures needed: ia64 m68k mips64 ppc ppc64 s390 s390x sh v850 x86-64
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/