mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
1dcc81b260
commit
7b225708e9
1 changed files with 1 additions and 1 deletions
|
|
@ -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' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue