test: getopt_long returns an int

./spa/plugins/alsa/test-timer.c: In function ‘main’:
../spa/plugins/alsa/test-timer.c:224:79: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  224 |         while ((c = getopt_long(argc, argv, "hD:f:r:c:", long_options, NULL)) != -1) {
      |
This commit is contained in:
Wim Taymans 2022-04-19 16:48:27 +02:00
parent 1dcc81b260
commit 7b225708e9

View file

@ -206,7 +206,7 @@ int main(int argc, char *argv[])
snd_pcm_hw_params_t *hparams;
snd_pcm_sw_params_t *sparams;
struct timespec now;
char c;
int c;
static const struct option long_options[] = {
{ "help", no_argument, NULL, 'h' },
{ "device", required_argument, NULL, 'D' },