Closed Bug 307324 Opened 19 years ago Closed 19 years ago

warning C4013: '_MD_new_lock' undefined; assuming extern returning int

Categories

(NSPR :: NSPR, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: timeless, Assigned: wtc)

References

()

Details

r:/mozilla\nsprpub\pr\src\threads\combined\prucv.c(496) : warning 
C4013: '_MD_new_lock' undefined; assuming extern returning int
r:/mozilla\nsprpub\pr\src\threads\combined\pruthr.c(1028) : warning 
C4013: '_MD_new_lock' undefined; assuming extern returning int

this is a reduced grep using visual studio (\#endif|\#if|_PR_MD_NEW_LOCK) of 
primpl.h, you can see that _PR_MD_NEW_LOCK is only prototyped for _PR_PTHREADS
R:\mozilla\nsprpub\pr\include\private\primpl.h(1):#if defined(_PR_PTHREADS)
R:\mozilla\nsprpub\pr\include\private\primpl.h(...):NSPR_API(PRStatus) 
_PR_MD_NEW_LOCK(_MDLock *md);
R:\mozilla\nsprpub\pr\include\private\primpl.h(...):#define    _PR_MD_NEW_LOCK 
_MD_NEW_LOCK
R:\mozilla\nsprpub\pr\include\private\primpl.h(...):#endif /* defined
(_PR_PTHREADS) */
Something is wrong with your build.  _MD_new_lock only appears
in mozilla/nsprpub/pr/include/md/_beos.h, and it is dead code
(i.e., the two lines in _beos.h that have _MD_new_lock are not
being used by BeOS NSPR).
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.