mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 00:51:24 +03:00
errno-util: suppress LGTM warning about strerror
This commit is contained in:
parent
a9a49d2fea
commit
82cdb75b8d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user