aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-19 00:18:30 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-19 20:01:33 +0200
commit2ff935f4bb6173daf3361b2ac7b58c6e33994878 (patch)
tree3084f527fc4021da4ae7413be27adade0ef5c639
parenta9cd12ee2afb3f3aad783c396816b23d8513f472 (diff)
downloadffmpeg-2ff935f4bb6173daf3361b2ac7b58c6e33994878.tar.gz
build system: remove -wcast-qual
Generating warnings when casting const away leads to tight constraints on the code if one wants to avoid warnings. This is especially true for generic code that is supposed to work with both const and non const. These tight constrains cause people to waste time trying to find a way to write code so it doesnt generate any warning, while people should rather spend their time thinking on how to write fast, clean, maintainable and bug free code. Removing this class of warnings fixes this issue. Approved-by: Nicolas George <nicolas.george@normalesup.org> Approved-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rwxr-xr-xconfigure1
1 files changed, 0 insertions, 1 deletions
diff --git a/configure b/configure
index 075229d441..fc8725e9ca 100755
--- a/configure
+++ b/configure
@@ -3333,7 +3333,6 @@ check_cflags -Wdisabled-optimization
check_cflags -Wpointer-arith
check_cflags -Wredundant-decls
check_cflags -Wno-pointer-sign
-check_cflags -Wcast-qual
check_cflags -Wwrite-strings
check_cflags -Wtype-limits
check_cflags -Wundef