command: eliminate gcc warning

Argument cmd of function command_available() is not used if mpd was
configured without sqlite.
This commit is contained in:
Laszlo Ashin 2009-01-24 11:13:58 +01:00
parent 48d3404727
commit 84b63c45fa

View File

@ -1551,7 +1551,7 @@ static const struct command commands[] = {
static const unsigned num_commands = sizeof(commands) / sizeof(commands[0]); static const unsigned num_commands = sizeof(commands) / sizeof(commands[0]);
static bool static bool
command_available(const struct command *cmd) command_available(G_GNUC_UNUSED const struct command *cmd)
{ {
#ifdef ENABLE_SQLITE #ifdef ENABLE_SQLITE
if (strcmp(cmd->cmd, "sticker") == 0) if (strcmp(cmd->cmd, "sticker") == 0)