summaryrefslogtreecommitdiffstats
path: root/rtkit-daemon.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-06-16 17:10:52 +0200
committerLennart Poettering <lennart@poettering.net>2009-06-16 17:10:52 +0200
commit32744efb214aa3ffbf15a9918b3bd3b3d41e7264 (patch)
tree074ba8ceb12e6588d81eb53bc773d328f0d73c6d /rtkit-daemon.c
parent108e5bbae0c1bb41b88434e74d039b6df50fed0e (diff)
autoconfization
Diffstat (limited to 'rtkit-daemon.c')
-rw-r--r--rtkit-daemon.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/rtkit-daemon.c b/rtkit-daemon.c
index 987cd40..2419ae9 100644
--- a/rtkit-daemon.c
+++ b/rtkit-daemon.c
@@ -19,9 +19,9 @@
along with RealtimeKit. If not, see <http://www.gnu.org/licenses/>.
***/
-#pragma GCC diagnostic ignored "-Wunused-parameter"
-
-#define _GNU_SOURCE
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdbool.h>
#include <unistd.h>
@@ -56,7 +56,7 @@
#endif
#ifndef SCHED_RESET_ON_FORK
-#warning "Your libc lacks the definition of SCHED_RESET_ON_FORK. We'll now define it ourselves, however make sure your kernel is new enough!"
+/* "Your libc lacks the definition of SCHED_RESET_ON_FORK. We'll now define it ourselves, however make sure your kernel is new enough! */
#define SCHED_RESET_ON_FORK 0x40000000
#endif
@@ -930,7 +930,6 @@ static int reset_all(void) {
for (;;) {
const struct dirent *tde;
unsigned long long tid;
- int r;
if (!(tde = readdir(td)))
break;