]> 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 <vkoul@kernel.org>
Thu, 13 Oct 2022 12:45:00 +0000 (18:15 +0530)
commit983b3a4e470bf35e8d37a1ae37d397ed65dc56bf
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