]> git.sesse.net Git - ffmpeg/commitdiff
configure: use no-narrowing for cuda-llvm compilation
authorMatt Oliver <protogonoi@gmail.com>
Fri, 12 Feb 2021 15:59:42 +0000 (02:59 +1100)
committerTimo Rothenpieler <timo@rothenpieler.org>
Mon, 22 Feb 2021 16:07:30 +0000 (17:07 +0100)
This fixes llvm compiler generating errors about narrowing conversion with
recent releases.

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

index 336301cb40d1a25152ef717ab5e8f327ede378bf..98daa1a64a1de96765af65e657ddfc5519c5ea93 100755 (executable)
--- 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