Closed Bug 219688 Opened 16 years ago Closed 8 years ago

Warnings in nsDNSService2.cpp

Categories

(Core :: Networking, defect)

x86
Windows 2000
defect
Not set

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: keeda, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [build_warning])

This may very well be harmless. I saw the following new warnings building with VC7.

d:\current\mozilla\obj-debug\dist\include\xpcom\nsCOMPtr.h(220) : warning C4624:
 'nsDerivedSafe<T>' : destructor could not be generated because a base class des
tructor is inaccessible
        with
        [
            T=nsAddrInfo
        ]
        d:/current\mozilla\netwerk\dns\src\nsDNSService2.cpp(85) : see reference
 to class template instantiation 'nsDerivedSafe<T>' being compiled
        with
        [
            T=nsAddrInfo
        ]
d:\current\mozilla\obj-debug\dist\include\xpcom\nsCOMPtr.h(220) : warning C4624:
 'nsDerivedSafe<T>' : destructor could not be generated because a base class des
tructor is inaccessible
        with
        [
            T=nsHostResolver
        ]
        d:/current\mozilla\netwerk\dns\src\nsDNSService2.cpp(188) : see referenc
e to class template instantiation 'nsDerivedSafe<T>' being compiled
        with
        [
            T=nsHostResolver
        ]


VC7 seems to be unhappy about the fact that the nsAddrInfo() and
nsHostResolver() dtor's are private.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/Compiler_Warnings_C4610_Through_C4999.asp
Assignee: darin → nobody
QA Contact: benc → networking
Blocks: buildwarning
Whiteboard: [build_warning]
Could not see warning reported by bug in current build (local build) as well as nightly builds. Moreover I could not find the code reported so i assume the code has been refactored. Hence closing this bug.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.