From b9c09a10ee922bdb2eab8760e5241b52e224cafd Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Fri, 29 Nov 2024 16:23:17 +0100 Subject: [PATCH] Fix warning reported by ros ci: line 316 maybe uninitialized var --- modules/core/src/image/vpCannyEdgeDetection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/image/vpCannyEdgeDetection.cpp b/modules/core/src/image/vpCannyEdgeDetection.cpp index d023df5150..1cfe10c271 100644 --- a/modules/core/src/image/vpCannyEdgeDetection.cpp +++ b/modules/core/src/image/vpCannyEdgeDetection.cpp @@ -255,7 +255,7 @@ vpImage vpCannyEdgeDetection::detect(const vpImage &I) { #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))) // UNIX - rlim_t initialStackSize; + rlim_t initialStackSize = 0; struct rlimit rl; int result; if (m_minStackSize > 0) {