[SERVER-10401] Server fails to build with clang-3.4 due to new warnings triggered by v8 code Created: 01/Aug/13  Updated: 11/Jul/16  Resolved: 01/Aug/13

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

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

Operating System: ALL
Participants:

 Description   

Attempting to build mongod with clang-3.4 generates a warning which is escalated to an error:

In file included from src/third_party/v8/src/x64/builtins-x64.cc:28:
In file included from src/third_party/v8/src/v8.h:56:
In file included from src/third_party/v8/src/v8utils.h:31:
src/third_party/v8/src/utils.h:976:20: error: comparison of constant 32 with expression of type 'v8::internal::AstPropertiesFlag' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
    ASSERT(element < static_cast<int>(sizeof(T) * CHAR_BIT));

We should add a -Wno for this warning which isn't terribly interesting.



 Comments   
Comment by auto [ 18/Sep/13 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-10401 Disable new clang-3.4 warning
Branch: master
https://github.com/mongodb/mongo/commit/681bc4c9be6a3628a0a0a7d0a3fc8443c2e63091

Comment by auto [ 01/Aug/13 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-10401 Suppress tautology warning in v8 triggered when using clang-3.4
Branch: master
https://github.com/mongodb/mongo/commit/3ffea6597a22d3570f0cd66850aa1975ed980131

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