aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2024-10-02 15:00:33 +0300
committerMartin Storsjö <martin@martin.st>2024-10-04 22:57:51 +0300
commit2705c0bd81e7fcfc67dbf05d7358e3c4ba935d18 (patch)
tree8f407d958531f4d6426fd64ee63b64f3e77b7cf3
parent5c4ede6b4ff6fa8818f0ca3f686aa54c1c2092b8 (diff)
downloadffmpeg-2705c0bd81e7fcfc67dbf05d7358e3c4ba935d18.tar.gz
configure: Enable -Wno-implicit-const-int-float-conversion if available
This silences a lot of compile warnings (around 160 instances at least), when compiling with Clang. These warnings look like this: libavformat/http.c:176:133: warning: implicit conversion from 'long long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Wimplicit-const-int-float-conversion] 176 | { "end_offset", "try to limit the request to bytes preceding this offset", OFFSET(end_off), AV_OPT_TYPE_INT64, { .i64 = 0 }, 0, INT64_MAX, D }, | ~ ^~~~~~~~~ Signed-off-by: Martin Storsjö <martin@martin.st>
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index 0247ea08d6..77a9395650 100755
--- a/configure
+++ b/configure
@@ -7460,6 +7460,7 @@ check_disable_warning -Wno-pointer-sign
check_disable_warning -Wno-unused-const-variable
check_disable_warning -Wno-bool-operation
check_disable_warning -Wno-char-subscripts
+check_disable_warning -Wno-implicit-const-int-float-conversion
check_disable_warning_headers(){
warning_flag=-W${1#-Wno-}