This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=375d066c0c30cd810d2c9c4b1ab6ffe889f5de60 commit 375d066c0c30cd810d2c9c4b1ab6ffe889f5de60 Author: Guillem Jover <[email protected]> AuthorDate: Mon Jan 20 00:20:20 2020 +0100 s-s-d: Explicitly ignore uninmportant function return values Warned-by: coverity --- debian/changelog | 1 + utils/start-stop-daemon.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 6c695c356..30c134a26 100644 --- a/debian/changelog +++ b/debian/changelog @@ -119,6 +119,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium This suppresses a gcc warning. - dpkg: Fix short lived memory leak in --force-help handling. - dpkg-split: Fix short lived file descriptor leak in --auto. + - start-stop-daemon: Explicitly ignore uninmportant function return values. * Build system: - Bump minimal Perl version to 5.24.1. - Add a serial versioning to the m4 files. diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c index 88c972663..5f3c93422 100644 --- a/utils/start-stop-daemon.c +++ b/utils/start-stop-daemon.c @@ -551,8 +551,8 @@ wait_for_child(pid_t pid) static void cleanup_socket_dir(void) { - unlink(notify_socket); - rmdir(notify_sockdir); + (void)unlink(notify_socket); + (void)rmdir(notify_sockdir); } static char * @@ -593,7 +593,7 @@ set_socket_passcred(int fd) #ifdef SO_PASSCRED static const int enable = 1; - setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &enable, sizeof(enable)); + (void)setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &enable, sizeof(enable)); #endif } -- Dpkg.Org's dpkg

