Merge branch 'master' into save_ext

This commit is contained in:
Jonathan G Rennison
2016-12-26 15:26:08 +00:00
83 changed files with 1674 additions and 1666 deletions

View File

@@ -1407,11 +1407,14 @@ make_compiler_cflags() {
flags="$flags -fno-tree-vrp"
fi
if [ $cc_version -ge 407 ]; then
if [ $cc_version -eq 407 ]; then
# Disable -Wnarrowing which gives many warnings, such as:
# warning: narrowing conversion of '...' from 'unsigned int' to 'int' inside { } [-Wnarrowing]
# They are valid according to the C++ standard, but useless.
cxxflags="$cxxflags -Wno-narrowing"
fi
if [ $cc_version -ge 407 ]; then
# Disable bogus 'attempt to free a non-heap object' warning
flags="$flags -Wno-free-nonheap-object"
else