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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user