Closed
Bug 833447
Opened 12 years ago
Closed 12 years ago
nsDOMBlobBuilder.cpp:284:8: warning: variable ‘nativeEOL’ set but not used [-Wunused-but-set-variable]
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: dholbert, Assigned: baku)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
1.17 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
Build warning in GCC 4.7:
{
nsDOMBlobBuilder.cpp:284:8: warning: variable ‘nativeEOL’ set but not used [-Wunused-but-set-variable]
}
for this chunk of code:
268 nsresult
269 nsDOMMultipartFile::InitFile(JSContext* aCx,
270 uint32_t aArgc,
271 jsval* aArgv)
272 {
[...]
284 bool nativeEOL = false;
285 if (aArgc > 1) {
286 FilePropertyBag d;
287 if (!d.Init(aCx, nullptr, aArgv[1])) {
288 return NS_ERROR_TYPE_ERR;
289 }
290 mName = d.mName;
291 mContentType = d.mType;
292 nativeEOL = d.mEndings == EndingTypesValues::Native;
293 }
https://mxr.mozilla.org/mozilla-central/source/content/base/src/nsDOMBlobBuilder.cpp#284
So -- native EOL is set (at line 284 and 292), but it never gets used. Is it supposed to be used?
This warning is in code added in bug 811615:
https://hg.mozilla.org/mozilla-central/rev/1af75383fd2e#l2.78
(It looks like this might just be copypaste cruft from a similar chunk in nsDOMMultipartFile::InitBlob(), which also has nativeEOL and actually uses it.)
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #705389 -
Flags: review?(khuey)
Attachment #705389 -
Flags: review?(khuey) → review+
Reporter | ||
Updated•12 years ago
|
Assignee: nobody → amarchesini
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•