This is the mail archive of the 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 #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                        |

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