This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Warning on cast to const


On Sun, 28 Mar 2004, Falk Hueffner wrote:

> See http://gcc.gnu.org/ml/gcc-bugs/2000-05/msg00502.html

thanks for the pointer and sorry to bother you again - but from this
argumentation, the following example should work fine (or did I miss
anything?):

void func(const char *const *demo) { }
int main() {
        int **demo=0;
        func(demo);
}

however - it does produce warnings too. unfortunately the c99 specs are
not very verbose on that topic...

yours,
 - clifford

-- 
| Clifford Wolf /-----=[ www.clifford.at ]==[ Tel: +43-699-10063494 ]=-\
|--------------/ diestartseite.at vocat.cc =[ Fax: +43-2235-42788-4 ]=-|
|-=[ EDEN Creations -- www.edenevents.at ]==[ IRC: www.freenode.net ]=-|
\==[ www.rocklinux.org ]===[ www.rocklinux.net ]===[ www.linbit.com ]==/

2B OR (NOT 2B) That is the question. The answer is FF.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]