PolicyKit oddities
David Weinehall
david.weinehall at nokia.com
Mon Jun 9 05:46:28 PDT 2008
On fre, 2008-06-06 at 16:54 +0100, ext Scott James Remnant wrote:
> On Fri, 2008-06-06 at 09:35 -0400, David Zeuthen wrote:
>
> > Probably even const * char *
> >
> Except that in C, const * char * is not compatible with char ** -- you
> can only add one layer of const.
>
> The usual promise idiom for a char ** you don't plan to modify is
> char * const *. It's not "const enough" to really guarantee you won't
> modify it, but it makes gcc happy.
Hmmm, gcc-4.3 doesn't seem to complain about
"const char *const *const"
with "-Wall -Wextra -pedantic -ansi" at least; what flags do you use
that makes gcc complain?
Regards: David
More information about the hal
mailing list