From a383f4511734b978020b1f8b4360ef9ad438e929 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/player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/player.c') diff --git a/src/player.c b/src/player.c index 4d7762a0f..e474b47dd 100644 --- a/src/player.c +++ b/src/player.c @@ -126,7 +126,7 @@ int playerPlay(int fd, Song * song) return 0; } -int playerStop(int fd) +int playerStop(mpd_unused int fd) { if (pc.state != PLAYER_STATE_STOP) { pc.stop = 1; @@ -144,7 +144,7 @@ void playerKill(void) /* deprecated */ playerPause(STDERR_FILENO); } -int playerPause(int fd) +int playerPause(mpd_unused int fd) { if (pc.state != PLAYER_STATE_STOP) { pc.pause = 1; -- cgit v1.2.3