[FFmpeg-cvslog] configure: Enable -Wno-implicit-const-int-float-conversion if available
Martin Storsjö
git at videolan.org
Fri Oct 4 23:02:13 EEST 2024
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Oct 2 15:00:33 2024 +0300| [2705c0bd81e7fcfc67dbf05d7358e3c4ba935d18] | committer: Martin Storsjö
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 at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2705c0bd81e7fcfc67dbf05d7358e3c4ba935d18
---
configure | 1 +
1 file changed, 1 insertion(+)
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-}
More information about the ffmpeg-cvslog
mailing list