This is the mail archive of the gcc-bugs@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]

[Bug bootstrap/33309] gcc.c:6236: error: passing argument 1 of 'xputenv' discards qualifiers from pointer target type



------- Comment #5 from ghazi at gcc dot gnu dot org  2007-09-05 16:04 -------
(In reply to comment #3)
> (In reply to comment #2)
> > Another option would be to constify xputenv and use CONST_CAST on the argument
> > passed to putenv.
> Like this?
> +  putenv (CONST_CAST (string));

Almost, CONST_CAST takes a type argument now:

CONST_CAST (char *, string)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33309


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