Closed Bug 613091 Opened 14 years ago Closed 14 years ago

js/src/jsdbgapi.cpp:1424:16: warning: converting to non-pointer type ‘JSBool’ from NULL

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

> js/src/jsdbgapi.cpp: In function ‘JSBool JS_EvaluateUCInStackFrame(JSContext*, JSStackFrame*, const jschar*, uintN, const char*, uintN, jsval*)’:
> js/src/jsdbgapi.cpp:1424:16: warning: converting to non-pointer type ‘JSBool’ from NULL

Looks like we're intending to return "false" (or JS_FALSE) there.
Summary: ../../../mozilla/js/src/jsdbgapi.cpp:1424:16: warning: converting to non-pointer type ‘JSBool’ from NULL → js/src/jsdbgapi.cpp:1424:16: warning: converting to non-pointer type ‘JSBool’ from NULL
Attached patch trivial fixSplinter Review
Assignee: general → dholbert
Status: NEW → ASSIGNED
Attachment #491391 - Flags: review?(mrbkap)
Comment on attachment 491391 [details] [diff] [review]
trivial fix

Thanks for catching this.
Attachment #491391 - Flags: review?(mrbkap) → review+
Comment on attachment 491391 [details] [diff] [review]
trivial fix

No problem, thanks for the quick review! :)

Requesting approval to land.
Attachment #491391 - Flags: approval2.0?
Attachment #491391 - Flags: approval2.0? → approval2.0+
Yesterday morning I got fed up with all the 4.5-only (?) warnings I've been getting for a couple weeks, and I pushed fixes for all of them to the TM repository:

http://hg.mozilla.org/tracemonkey/rev/0c72e1963839
http://hg.mozilla.org/tracemonkey/rev/2e440dc69d19

One of those fixes included this bug's complaint.  So this bug is fixed in the TraceMonkey repository, and in the mozilla-central repository as of today's merge, but not by this bug's effort.  :-\  Sorry for the duplication of effort...
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: fixed-in-tracemonkey
Target Milestone: --- → mozilla2.0b8
No prob, thanks for fixing. :)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: