Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
a8b97eb5
Commit
a8b97eb5
authored
Apr 27, 2017
by
James Zern
Browse files
configure: enable -Wshorten-64-to-32 for hbd
Change-Id: I98e41e2cf58fa698ab2ec91536e82368bb04b3d7
parent
34939825
Changes
2
Hide whitespace changes
Inline
Side-by-side
build/cmake/aom_configure.cmake
View file @
a8b97eb5
...
...
@@ -136,9 +136,9 @@ else ()
add_compiler_flag_if_supported
(
"-Wuninitialized"
)
add_compiler_flag_if_supported
(
"-Wunused"
)
add_compiler_flag_if_supported
(
"-Wvla"
)
if
(
NOT CONFIG_HIGHBITDEPTH
)
a
dd_c_flag_if_supported
(
"-Wshorten-64-to-32"
)
endif
(
)
# TODO(jzern): this could be added as a cxx flags for test/*.cc only,
#
a
voiding third_party.
add_c_flag_if_supported
(
"-Wshorten-64-to-32"
)
# Add -Wshadow only for C files to avoid massive gtest warning spam.
add_c_flag_if_supported
(
"-Wshadow"
)
...
...
configure
View file @
a8b97eb5
...
...
@@ -722,11 +722,9 @@ process_toolchain() {
fi
# gtest makes heavy use of undefined pre-processor symbols
check_cflags
"-Wundef"
&&
add_cflags_only
"-Wundef"
if
!
enabled highbitdepth
;
then
# Avoid this warning for third_party C++ sources. Some reorganization
# would be needed to apply this only to test/*.cc.
check_cflags
-Wshorten-64-to-32
&&
add_cflags_only
-Wshorten-64-to-32
fi
# Avoid this warning for third_party C++ sources. Some reorganization
# would be needed to apply this only to test/*.cc.
check_cflags
-Wshorten-64-to-32
&&
add_cflags_only
-Wshorten-64-to-32
fi
if
enabled icc
;
then
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment