]> granicus.if.org Git - icinga2/commitdiff
Silence compiler warning for nice() 6618/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Fri, 14 Sep 2018 12:29:52 +0000 (14:29 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Fri, 14 Sep 2018 12:29:52 +0000 (14:29 +0200)
lib/base/process.cpp

index d5d3d69d2ccae47e6fecb6cc43ab8e1024cce6fb..f84bc497c01ad5446d4c2c22c834b83352907b8d 100644 (file)
@@ -165,7 +165,7 @@ static Value ProcessSpawnImpl(struct msghdr *msgh, const Dictionary::Ptr& reques
 
 #ifdef HAVE_NICE
                if (adjustPriority)
-                       nice(5);
+                       (void)nice(5);
 #endif /* HAVE_NICE */
 
                sigset_t mask;