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)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: crispin, Assigned: crispin)

Details

Attachments

(1 file)

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:
Summary: nsStringAPI.h has unused variables in with non-mozilla builds → nsStringAPI.h has unused variables in with non-debug builds
Attachment #168426 - Flags: review+
Attachment #168426 - Flags: superreview?(darin)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #168426 - Flags: superreview?(darin) → superreview+
Assignee: string → crispin
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
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: