-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Build, Internal Code, WiredTiger
-
None
-
Environment:Ubuntu 15.04, GCC 4.9.2
-
Fully Compatible
-
ALL
-
If the -fno-strict-aliasing flag is removed from the top level SConstruct, the vendored WiredTiger sources in src/third_party/wiredtiger do not compile. In particular, the rand.c file generates strict aliasing errors:
src/third_party/wiredtiger/src/support/rand.c: In function '__wt_random_init': src/third_party/wiredtiger/src/support/rand.c:57:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] M_W(rnd) = 521288629; ^ src/third_party/wiredtiger/src/support/rand.c: In function '__wt_random': src/third_party/wiredtiger/src/support/rand.c:78:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] w = M_W(rnd); ^ src/third_party/wiredtiger/src/support/rand.c:91:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] M_W(rnd) = w = 18000 * (w & 65535) + (w >> 16); ^ cc1: all warnings being treated as errors
- is depended on by
-
WT-1973 MongoDB changes for WiredTiger 2.7.0
- Closed
-
SERVER-19744 WiredTiger changes for MongoDB 3.0.6
- Closed
- is related to
-
SERVER-19338 Evaluate feasibility and impact of not disabling strict aliasing
- Closed