From 05afa5dd63ece9c6e43b40705f3c7dc1a9e6049e Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Fri, 2 Aug 2024 15:40:39 +0200 Subject: [PATCH] Update example_csscal.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit with gcc-14 this warning becomes a failure 90s /tmp/autopkgtest.g0L4Ek/autopkgtest_tmp/example_csscal.c: In function ‘main’: 90s /tmp/autopkgtest.g0L4Ek/autopkgtest_tmp/example_csscal.c:67:26: error: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration] 90s 67 | int lenX = 1 + (N-1)*abs(incx); 90s | ^~~ 90s /tmp/autopkgtest.g0L4Ek/autopkgtest_tmp/example_csscal.c:26:1: note: include ‘’ or provide a declaration of ‘abs’ 90s 25 | #include 90s +++ |+#include 90s 26 | 90s /tmp/autopkgtest.g0L4Ek/autopkgtest_tmp/example_csscal.c:89:5: warning: ‘clCreateCommandQueue’ is deprecated [-Wdeprecated-declarations] 90s 89 | queue = clCreateCommandQueue(ctx, device, 0, &err); 90s | ^~~~~ --- src/samples/example_csscal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/samples/example_csscal.c b/src/samples/example_csscal.c index c78bc550..c03030f3 100644 --- a/src/samples/example_csscal.c +++ b/src/samples/example_csscal.c @@ -16,6 +16,7 @@ #include #include +#include #include #include