snd_lib_log_set_handler
alsa-project/alsa-utils issue #314 was opened from sidrat:
Function snd_lib_log_filter is still showing up after it was removed from alsa-lib, can some one make a patch to replace snd_lib_log_filter with snd_lib_error_set_handler, thank you
alsactl/alsactl.c alsactl.c: In function ‘main’: alsactl.c:465:9: error: implicit declaration of function ‘snd_lib_log_set_handler’; did you mean ‘snd_lib_error_set_handler’? [-Wimplicit-function-declaration] 465 | snd_lib_log_set_handler(log_handler); | ^~~~~~~~~~~~~~~~~~~~~~~ | snd_lib_error_set_handler utils.c: In function ‘log_handler’: utils.c:202:14: error: implicit declaration of function ‘snd_lib_log_filter’ [-Wimplicit-function-declaration] 202 | if (!snd_lib_log_filter(prio, interface, NULL)) | ^~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:638: alsactl-alsactl.o] Error 1 make[2]: *** Waiting for unfinished jobs.... utils.c:205:17: error: implicit declaration of function ‘snd_lib_log_priority’ [-Wimplicit-function-declaration] 205 | text1 = snd_lib_log_priority(prio); | ^~~~~~~~~~~~~~~~~~~~ utils.c:205:15: error: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 205 | text1 = snd_lib_log_priority(prio); | ^ utils.c:206:17: error: implicit declaration of function ‘snd_lib_log_interface’ [-Wimplicit-function-declaration] 206 | text2 = snd_lib_log_interface(interface); | ^~~~~~~~~~~~~~~~~~~~~ utils.c:206:15: error: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 206 | text2 = snd_lib_log_interface(interface);
Issue URL : https://github.com/alsa-project/alsa-utils/issues/314 Repository URL: https://github.com/alsa-project/alsa-utils
participants (1)
-
GitHub issues - opened