Unnecessary "not derived from nsISupports" warnings for XPCOM pseudo-enums

RESOLVED FIXED in mozilla12

Status

()

Core
XPCOM
--
trivial
RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: Irving, Assigned: Irving)

Tracking

Trunk
mozilla12
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Thunderbird has many IDL definitions of pseudo-enums, basically an IDL interface that only declares a bunch of constants. Because we never create an instance of the IDL object, it doesn't need any of the normal nsISupports infrastructure.

xpcom prints warnings about all of these, like:

warning: interface 'nsMsgPriority' not derived from nsISupports, /Users/ireid/tbird/comm-central/mailnews/base/public/MailNewsTypes2.idl line 52:0
interface nsMsgPriority {
^

Based on a conversation on irc #developers, this warning doesn't add much value and can be removed.
Created attachment 572912 [details] [diff] [review]
Remove 'not derived from nsISupports' warning
Attachment #572912 - Flags: review?(khuey)
Assignee: nobody → irving
Attachment #572912 - Flags: review?(khuey) → review+
I don't have mozilla-central checkin privileges; anyone ready to take this on?
Status: NEW → ASSIGNED
Keywords: checkin-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/8e7225a8b1cc
Flags: in-testsuite-
Keywords: checkin-needed
Target Milestone: --- → mozilla12

Comment 4

5 years ago
https://hg.mozilla.org/mozilla-central/rev/8e7225a8b1cc
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.