]> git.alsa-project.org Git - tinycompress.git/commit
cplay: remove set but not used warnings
authorVinod Koul <vkoul@kernel.org>
Thu, 13 Oct 2022 12:19:57 +0000 (17:49 +0530)
committerVinod Koul <3178504+vinodkoul@users.noreply.github.com>
Thu, 13 Oct 2022 15:34:19 +0000 (21:04 +0530)
commitf1e2d285ffde3c26dbe83641f67714f92e3e165a
tree469f3162c77298f835bc51e6177089c5f4b900c7
parentf392c80beffd3593642f10be241f3a7019c00edc
cplay: remove set but not used warnings

cplay.c: In function ‘find_adif_header’:
cplay.c:367:13: warning: variable ‘object_type’ set but not used [-Wunused-but-set-variable]
  367 |         int object_type;
      |             ^~~~~~~~~~~

cplay.c:366:13: warning: variable ‘bitrate’ set but not used [-Wunused-but-set-variable]
  366 |         int bitrate;
      |             ^~~~~~~

cplay.c:91:27: warning: ‘DEFAULT_CODEC_ID’ defined but not used [-Wunused-const-variable=]
   91 | static const unsigned int DEFAULT_CODEC_ID = SND_AUDIOCODEC_PCM;
      |                           ^~~~~~~~~~~~~~~~

While at it, cleanup the code a bit as well removing now redundant
braces around if-else

So remove these unused variables

Signed-off-by: Vinod Koul <vkoul@kernel.org>
src/utils/cplay.c