From 82cdb75b8d4a67975e009e0df319cabe9c805a4a Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Wed, 7 Apr 2021 23:06:24 +0100 Subject: [PATCH] errno-util: suppress LGTM warning about strerror --- src/basic/errno-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/errno-util.h b/src/basic/errno-util.h index 5609820b88..3f2d0af56d 100644 --- a/src/basic/errno-util.h +++ b/src/basic/errno-util.h @@ -33,7 +33,7 @@ static inline int negative_errno(void) { static inline const char *strerror_safe(int error) { /* 'safe' here does NOT mean thread safety. */ - return strerror(abs(error)); + return strerror(abs(error)); /* lgtm [cpp/potentially-dangerous-function] */ } static inline int errno_or_else(int fallback) {