Closed Bug 921582 Opened 11 years ago Closed 11 years ago

'... may be used uninitialized' warning in intl_CompareStrings

Categories

(Core :: JavaScript: Internationalization API, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla27

People

(Reporter: jimb, Assigned: jimb)

Details

Attachments

(1 file)

Specifically:

In file included from ./../../dist/include/js/CallArgs.h:39:0,
                 from ./../../dist/include/js/CallNonGenericMethod.h:12,
                 from /home/jimb/moz/dbg/js/src/NamespaceImports.h:15,
                 from /home/jimb/moz/dbg/js/src/builtin/Intl.h:10,
                 from /home/jimb/moz/dbg/js/src/builtin/Intl.cpp:12:
./../../dist/include/js/Value.h: In function ‘bool js::intl_CompareStrings(JSContext*, unsigned int, JS::Value*)’:
./../../dist/include/js/Value.h:653:58: warning: ‘res’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     JS_RETURN_LAYOUT_FROM_BITS(((uint64_t)(uint32_t)i32) | JSVAL_SHIFTED_TAG_INT32);
                                                          ^
/home/jimb/moz/dbg/js/src/builtin/Intl.cpp:968:13: note: ‘res’ was declared here
     int32_t res;
             ^
Attachment #811306 - Flags: review?(jwalden+bmo)
Attachment #811306 - Flags: review?(jwalden+bmo) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/b85ed93dee3b
Flags: in-testsuite-
Target Milestone: --- → mozilla27
https://hg.mozilla.org/mozilla-central/rev/b85ed93dee3b
Assignee: nobody → jimb
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Mass-moving existing Intl-related bugs to the new Core :: JavaScript: Internationalization API component.

If you think this bug has been moved in error, feel free to move it back to Core :: JavaScript Engine.

[Mass change filter: core-js-intl-api-move]
Component: JavaScript Engine → JavaScript: Internationalization API
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: