[SERVER-15306] Clang 3.5 reports: "warning: 'this' pointer cannot be null in well-defined C++ code" in V8 Created: 18/Sep/14  Updated: 24/Aug/15  Resolved: 24/Aug/15

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 2.7.6
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Tyler Brock Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux (Clang 3.5)


Issue Links:
Related
Operating System: ALL
Sprint: Platform 8 08/28/15
Participants:

 Description   

Found in both versions of V8 in various places:

This ticket is to track the error in the third party code, there is a similar ticket (SERVER-15182) to track it in our code:

src/third_party/v8-3.25/src/spaces.h:961:9: warning: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to false [-Wtautological-undefined-compare]
    if (this == NULL || code_range_ == NULL) return false;
        ^~~~    ~~~~



 Comments   
Comment by Andrew Morrow (Inactive) [ 24/Aug/15 ]

V8 support has been removed in SERVER-19378

Comment by Githook User [ 19/Sep/14 ]

Author:

{u'username': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'}

Message: SERVER-15306 (V8) suppress warning about "this" == NULL comparison
Branch: master
https://github.com/mongodb/mongo/commit/062e96af5a21d9a4d5f728d903a5e45d52fe8bb5

Comment by Githook User [ 19/Sep/14 ]

Author:

{u'username': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'}

Message: SERVER-15306 (V8-3.25) suppress warning about "this" == NULL comparison
Branch: master
https://github.com/mongodb/mongo/commit/28331b4bedcfe300612d38ef2699eee25097c7ac

Generated at Thu Feb 08 03:37:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.