Closed
Bug 445951
Opened 17 years ago
Closed 17 years ago
missing keyword 'public' in xpcom/glue/nsAutoLock.h
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: ul-mcamafia, Assigned: ul-mcamafia)
Details
(Keywords: platform)
Attachments
(1 file, 2 obsolete files)
3.68 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.16) Gecko/20080702 SeaMonkey/1.1.11
Build Identifier: cvs tag FIREFOX_3_0_1_RELEASE
in the declaration
class nsAutoUnlock : nsAutoUnlockBase {}
the VACPP 6 compiler correctly assumes 'private' for the ommitted keyword.
An explicit 'public' is needed.
Reproducible: Always
Steps to Reproduce:
1. Compile on AIX 5 with VACPP6
2.
3.
Actual Results:
build breaks
Expected Results:
compile without severe warnings
Suggest trivial patch:
Index: mozilla/xpcom/glue/nsAutoLock.h
===================================================================
RCS file: /cvsroot/mozilla/xpcom/glue/nsAutoLock.h,v
retrieving revision 1.2
diff -u -8 -p -r1.2 nsAutoLock.h
--- mozilla/xpcom/glue/nsAutoLock.h 16 Aug 2007 20:51:50 -0000 1.2
+++ mozilla/xpcom/glue/nsAutoLock.h 18 Jul 2008 07:20:48 -0000
@@ -245,17 +245,17 @@ public:
void unlock() {
PR_ASSERT(mLocked);
PR_Unlock(mLock);
mLocked = PR_FALSE;
Hide();
}
};
-class nsAutoUnlock : nsAutoUnlockBase
+class nsAutoUnlock : public nsAutoUnlockBase
{
private:
PRLock *mLock;
public:
nsAutoUnlock(PRLock *lock) :
nsAutoUnlockBase(lock),
mLock(lock)
Assignee | ||
Comment 1•17 years ago
|
||
build environment produces working Firefox 2.0.0.16 and Seamonkey 1.1.11
Version: unspecified → 1.9.0 Branch
Assignee | ||
Comment 2•17 years ago
|
||
Here is the snip from the build log:
"../../dist/include/xpcom/nsAutoLock.h", line 253.22: 1540-0198 (W) The omitted keyword "private" is assumed for base class "nsAutoUnlockBase".
"/home/ulink/Src/mozilla/xpcom/threads/nsTimerImpl.cpp", line 461.3: 1540-0300 (S) The "private" member "nsTimerEvent::~nsTimerEvent()" cannot be accessed.
"../../dist/include/xpcom/nsCOMPtr.h", line 187.7: 1540-0719 (I) The previous message was produced while processing the implicit member function "nsDerivedSafe<nsTimerEvent>::~nsDerivedSafe()".
"../../dist/include/xpcom/nsCOMPtr.h", line 187.7: 1540-0700 (I) The previous message was produced while processing "class nsDerivedSafe<nsTimerEvent>".
"/home/ulink/Src/mozilla/xpcom/threads/nsTimerImpl.cpp", line 495.10: 1540-0700 (I) The previous message was produced while processing "nsTimerImpl::PostTimerEvent()".
gmake[5]: *** [nsTimerImpl.o] Error 1
Assignee | ||
Updated•17 years ago
|
Comment 3•17 years ago
|
||
You need to attach the patch and request review on it from an appropriate reviewer before it can be checked in
Keywords: checkin-needed
Assignee | ||
Comment 4•17 years ago
|
||
Assignee | ||
Updated•17 years ago
|
Attachment #331295 -
Flags: review?
Attachment #331295 -
Flags: approval1.9.0.2?
Comment 5•17 years ago
|
||
Comment on attachment 331295 [details] [diff] [review]
suggested patch
You must request review from specific people, and patches are not considered for branches until after they have been reviewed and checked into trunk for a while.
You may want to skim over http://www.mozilla.org/hacking/
Attachment #331295 -
Flags: review?(benjamin)
Attachment #331295 -
Flags: review?
Attachment #331295 -
Flags: approval1.9.0.2?
Comment 6•17 years ago
|
||
Why does this need to be public? Or are you just trying to silence what appears to be warning? Can't you use "private" instead?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Updated•17 years ago
|
Attachment #331295 -
Attachment is obsolete: true
Attachment #331295 -
Flags: review?(benjamin)
Assignee | ||
Comment 7•17 years ago
|
||
trivial patch, issue is cosmetic only.
replacing the implicit "private" with explicit keyword "private"
The compilation error in nsTimerImpl() as shown in the posted build log snip isn't related.
Attachment #331467 -
Flags: review?
Assignee | ||
Updated•17 years ago
|
Attachment #331467 -
Flags: review? → review?(benjamin)
Assignee | ||
Updated•17 years ago
|
Severity: normal → trivial
Assignee | ||
Comment 8•17 years ago
|
||
Same cosmetic issue also in:
nsUnicharInputStream.h for base class nsISimpleUnicharStreamFactory
nsFastLoadFile.h for base class nsFastLoadFileIO
nsCategoryManager.cpp for base class nsIUTF8StringEnumerator
will create a combined patch proposal today and attach to this bug report.
Assignee | ||
Updated•17 years ago
|
Attachment #331467 -
Attachment is obsolete: true
Attachment #331467 -
Flags: review?(benjamin)
Assignee | ||
Comment 9•17 years ago
|
||
Attachment #331490 -
Flags: review?(benjamin)
Updated•17 years ago
|
Attachment #331490 -
Flags: review?(benjamin) → review+
Assignee | ||
Updated•17 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•17 years ago
|
Attachment #331490 -
Flags: superreview?(shaver)
Comment 10•17 years ago
|
||
Comment on attachment 331490 [details] [diff] [review]
patch makes implicite private inheritance explicat to suppress useless warnings
no sr needed
Attachment #331490 -
Flags: superreview?(shaver)
Updated•17 years ago
|
Assignee: nobody → ul.mcamafia
Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Comment 11•17 years ago
|
||
Is this patch for checkin on trunk or on branch (just wondering because of the Version field in this bug)?
Comment 12•17 years ago
|
||
trunk-only. There is no need to take this warning-only fix on the branch.
Version: 1.9.0 Branch → Trunk
Comment 13•17 years ago
|
||
pushed to mozilla-central, changeset 2f7064a38261.
Keywords: checkin-needed
Assignee | ||
Updated•17 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•