]> git.tuebingen.mpg.de Git - paraslash.git/commit
Work around some clang warnings.
authorAndre Noll <maan@systemlinux.org>
Thu, 9 Jun 2011 15:52:13 +0000 (17:52 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 6 Jul 2011 08:05:06 +0000 (10:05 +0200)
commit1d54a5412ef39590022e6dd4448881f267e96d0b
tree966d5f4dd41247b54f7a32c5f50932f36922dc46
parent1548a6c606be5f759f3ccc94b901c3a2db889dbe
Work around some clang warnings.

This fixes a bunch of warnings of the form

command.c:126:2: warning: expression result unused [-Wunused-value]
WRITE_STATUS_ITEM(&b, SI_MTIME, "%s\n", mtime);

when compiling with clang. This warning is bogus, because the underlying call
to para_printf() can only return failure if the max_size_handler fails, but
this handler is never called here because the size of this para_buffer is
unlimited.

Casting to void makes the warning go away.
audiod_command.c
command.c