lkml.org 
[lkml]   [2003]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] Remove __const__ due to GCC warning
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.115 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site