Closed Bug 703178 Opened 8 years ago Closed 8 years ago

Build warnings in security/manager/ssl/src/ [-Wunused-but-set-variable]

Categories

(Core :: Security, defect)

x86_64
Linux
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: atulagrwl, Assigned: atulagrwl)

References

(Blocks 1 open bug)

Details

(Whiteboard: [build_warning])

Attachments

(1 file, 2 obsolete files)

1 /mozilla/mozilla-central/security/manager/ssl/src/nsNSSComponent.cpp:1361:12    : warning: variable ‘rv’ set but not used [-Wunused-but-set-variable]       
  2 /mozilla/mozilla-central/security/manager/ssl/src/nsNSSComponent.cpp:2278:16    : warning: variable ‘rv’ set but not used [-Wunused-but-set-variable]
  3 /mozilla/mozilla-central/security/manager/ssl/src/nsNSSIOLayer.cpp:3288:13:     warning: variable ‘srv’ set but not used [-Wunused-but-set-variable]
  4 /mozilla/mozilla-central/security/manager/ssl/src/nsCMSSecureMessage.cpp:176    :11: warning: variable ‘item’ set but not used [-Wunused-but-set-variable]
  5 /mozilla/mozilla-central/security/manager/ssl/src/nsKeygenHandler.cpp:512:13    : warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
  6 /mozilla/mozilla-central/security/manager/ssl/src/nsNSSCertificateDB.cpp:145    :17: warning: variable ‘moduleID’ set but not used [-Wunused-but-set-variabl    e]
  7 /mozilla/mozilla-central/security/manager/ssl/src/nsNSSCertificateDB.cpp:145    :26: warning: variable ‘slotID’ set but not used [-Wunused-but-set-variable]
  8 /mozilla/mozilla-central/security/manager/ssl/src/nsNSSCertificateDB.cpp:125    7:12: warning: variable ‘rv’ set but not used [-Wunused-but-set-variable]
Attached patch Patch v1 (obsolete) — Splinter Review
Assignee: nobody → atulagrwl
Attachment #575080 - Flags: review?(kaie)
Whiteboard: [build_warning]
Attached patch Patch v1.01 (obsolete) — Splinter Review
Also fixing couple of deprecated warnings like
/mozilla/mozilla-central/security/manager/ssl/src/nsNSSCertTrust.cpp:125:36: warning: ‘__CERTDB_VALID_PEER’ is deprecated (de    clared at ../../../../dist/include/certdb.h:61): CERTDB_VALID_PEER is now CERTDB_TERMINAL_RECORD [-Wdeprecated-declarations]
Attachment #575080 - Attachment is obsolete: true
Attachment #575080 - Flags: review?(kaie)
Attachment #575086 - Flags: review?(kaie)
Blocks: buildwarning
Pinging for code review.
Comment on attachment 575086 [details] [diff] [review]
Patch v1.01

r=kaie

If you cannot check this in yourself, please add keyword checkin-needed

Thanks for the patch
Attachment #575086 - Flags: review?(kaie) → review+
Keywords: checkin-needed
I'm afraid your patch no longer applies, it needs to be updated to latest mozilla-central.
Keywords: checkin-needed
Attached patch Patch v1.10Splinter Review
Rebasing the patch over current m-c.
Attachment #575086 - Attachment is obsolete: true
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/daceb968bf88
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Duplicate of this bug: 692681
You need to log in before you can comment on or make changes to this bug.