Closed Bug 265362 Opened 20 years ago Closed 20 years ago

compiler warning in PR_SetEnv

Categories

(NSPR :: NSPR, defect, P4)

Sun
Solaris
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 136531

People

(Reporter: julien.pierre, Assigned: wtc)

Details

"../../../../pr/src/misc/prenv.c", line 93: warning: argument #1 is incompatible
with prototype:

This is because putenv() is declared to take char*, and we pass it const char*.
Given the documented issues about persistence requirement for string, should we
cast this to (char*) ? Or are there platforms where it's defined to take const
char* ? Another way might be to fix the _MD_PUT_ENV macro to do the cast only on
the OS where appropriate.
Priority: -- → P4
Julien, this is a known bug and it is not easy
to fix.

*** This bug has been marked as a duplicate of 136531 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
OS: SunOS → Solaris
You need to log in before you can comment on or make changes to this bug.