[clang] Use -Wshorten-64-to-32 to enable warnings about 64bit to 32bit truncations.
authorbmeurer <bmeurer@chromium.org>
Tue, 28 Apr 2015 06:54:08 +0000 (23:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Apr 2015 06:53:41 +0000 (06:53 +0000)
commit4486c47d9b207e95f15598135262bb43f0c5dc00
treea0730c39932d182b683fe31f9e642ef9b8c5b980
parentef15f83bc382f9cc3bae304cafeb954578aa442f
[clang] Use -Wshorten-64-to-32 to enable warnings about 64bit to 32bit truncations.

Currently only the Win64 bots report this warnings, which adds quite
some overhead to the development process. With this flag we also get
compiler warnings about implicit 64bit to 32bit truncations when
building with clang on Linux/x64 and Mac/x64.

R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/1111733002

Cr-Commit-Position: refs/heads/master@{#28093}
24 files changed:
build/standalone.gypi
samples/process.cc
samples/shell.cc
src/base/platform/platform-aix.cc
src/base/platform/platform-cygwin.cc
src/base/platform/platform-freebsd.cc
src/base/platform/platform-linux.cc
src/base/platform/platform-macos.cc
src/base/platform/platform-openbsd.cc
src/base/platform/platform-posix.cc
src/base/platform/platform-qnx.cc
src/base/platform/platform-solaris.cc
src/base/platform/platform-win32.cc
src/base/platform/platform.h
src/base/platform/time.cc
src/d8-posix.cc
src/d8.cc
src/flags.cc
src/gdb-jit.cc
src/snapshot/mksnapshot.cc
src/utils.cc
test/cctest/compiler/call-tester.h
test/cctest/test-mark-compact.cc
tools/shell-utils.h