From ac5ec35a6e222f635912f6a7eaf3c036c71367b6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:02 +0200 Subject: enable -Wpointer-arith, -Wstrict-prototypes Also enable -Wunused-parameter - this forces us to add the gcc "unused" attribute to a lot of parameters (mostly library callback functions), but it's worth it during code refactorizations. --- src/sig_handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sig_handlers.c') diff --git a/src/sig_handlers.c b/src/sig_handlers.c index 0ad35b779..2d2e08278 100644 --- a/src/sig_handlers.c +++ b/src/sig_handlers.c @@ -46,7 +46,7 @@ int handlePendingSignals(void) return 0; } -static void chldSigHandler(int sig) +static void chldSigHandler(mpd_unused int sig) { int status; int pid; -- cgit v1.2.3 From 27ce02fa9146601ab4a0210cc85c2d5f50b833f4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:03 +0200 Subject: clean up CPP includes Include only headers which are really required. This speeds up compilation and helps detect cross-layer accesses. [ew: minor fixups to not break on new core] --- src/sig_handlers.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/sig_handlers.c') diff --git a/src/sig_handlers.c b/src/sig_handlers.c index 2d2e08278..6b28cb675 100644 --- a/src/sig_handlers.c +++ b/src/sig_handlers.c @@ -23,7 +23,6 @@ #include "command.h" #include "signal_check.h" #include "log.h" -#include "decode.h" int handlePendingSignals(void) { -- cgit v1.2.3