This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/33309] gcc.c:6236: error: passing argument 1 of 'xputenv' discards qualifiers from pointer target type
- From: "danglin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Sep 2007 01:50:32 -0000
- Subject: [Bug bootstrap/33309] gcc.c:6236: error: passing argument 1 of 'xputenv' discards qualifiers from pointer target type
- References: <bug-33309-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from danglin at gcc dot gnu dot org 2007-09-05 01:50 -------
I think I'll let Kaveh fix this one...
On hpux and in libiberty, putenv takes a const char * while on other os's
it takes a char *. xputenv doesn't do anything that would affect the
constantness of its argument.
Thus, it doesn't seem reasonable to do something ugly to the definition of
INIT_ENVIRONMENT in pa64-hpux.h to resolve this regression.
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ghazi at caip dot rutgers
| |dot edu
Summary|gcc.c:6236: error: passing |gcc.c:6236: error: passing
|argument 1 of 'xputenv' |argument 1 of 'xputenv'
|discards qualif |discards qualifiers from
|iers from pointer target |pointer target type
|type |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33309