[FFmpeg-cvslog] configure: use no-narrowing for cuda-llvm compilation

Matt Oliver git at videolan.org
Mon Feb 22 18:12:02 EET 2021


ffmpeg | branch: master | Matt Oliver <protogonoi at gmail.com> | Sat Feb 13 02:59:42 2021 +1100| [52cc323735ced6e8095cfd3acea0e36e35c76eb2] | committer: Timo Rothenpieler

configure: use no-narrowing for cuda-llvm compilation

This fixes llvm compiler generating errors about narrowing conversion with
recent releases.

Signed-off-by: Timo Rothenpieler <timo at rothenpieler.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=52cc323735ced6e8095cfd3acea0e36e35c76eb2
---

 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 336301cb40..98daa1a64a 100755
--- a/configure
+++ b/configure
@@ -6243,7 +6243,7 @@ fi
 if enabled cuda_nvcc; then
     nvccflags="$nvccflags -ptx"
 else
-    nvccflags="$nvccflags -S -nocudalib -nocudainc --cuda-device-only -include ${source_link}/compat/cuda/cuda_runtime.h"
+    nvccflags="$nvccflags -S -nocudalib -nocudainc --cuda-device-only -Wno-c++11-narrowing -include ${source_link}/compat/cuda/cuda_runtime.h"
     check_nvcc cuda_llvm
 fi
 



More information about the ffmpeg-cvslog mailing list