Closed
Bug 274086
Opened 20 years ago
Closed 20 years ago
nsStringAPI.h has unused variables in with non-debug builds
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: crispin, Assigned: crispin)
Details
Attachments
(1 file)
|
1.82 KB,
patch
|
benjamin
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20041204 Galeon/1.3.18.99
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20041204 Galeon/1.3.18.99
In galeon, we #include <nsEmbedString.h>, which of course brings in
nsStringAPI.h, we compile with -Werror to catch compile warnings, and
nsStringAPI.h breaks the build as follows:
In file included from /opt/mozilla/include/mozilla-1.8a6/nsEmbedString.h:43,
from GulString.h:31,
from nsAboutRedirector.cpp:46:
/opt/mozilla/include/mozilla-1.8a6/nsStringAPI.h: In member function `
nsDependentSubstring_external::nsDependentSubstring_external(const
nsAString&, unsigned int, unsigned int)':
/opt/mozilla/include/mozilla-1.8a6/nsStringAPI.h:1425: warning: unused variable
`PRUint32 len'
/opt/mozilla/include/mozilla-1.8a6/nsStringAPI.h: In member function `
nsDependentCSubstring_external::nsDependentCSubstring_external(const
nsACString&, unsigned int, unsigned int)':
/opt/mozilla/include/mozilla-1.8a6/nsStringAPI.h:1481: warning: unused variable
`PRUint32 len'
This is with non-debug builds of mozilla.
Reproducible: Always
Steps to Reproduce:| Assignee | ||
Updated•20 years ago
|
Summary: nsStringAPI.h has unused variables in with non-mozilla builds → nsStringAPI.h has unused variables in with non-debug builds
| Assignee | ||
Comment 1•20 years ago
|
||
Updated•20 years ago
|
Attachment #168426 -
Flags: review+
| Assignee | ||
Updated•20 years ago
|
Attachment #168426 -
Flags: superreview?(darin)
Updated•20 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•20 years ago
|
Attachment #168426 -
Flags: superreview?(darin) → superreview+
Updated•20 years ago
|
Assignee: string → crispin
Comment 2•20 years ago
|
||
Checking in xpcom/string/public/nsStringAPI.h; /cvsroot/mozilla/xpcom/string/public/nsStringAPI.h,v <-- nsStringAPI.h new revision: 1.13; previous revision: 1.12 done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Component: String → XPCOM
You need to log in
before you can comment on or make changes to this bug.
Description
•