mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-11 13:30:05 -05:00
error: do not export internal snd_err_msg variable
This variable was never intended to modify from outside (not in public headers). Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
fa6e83d780
commit
0a4e8854d5
2 changed files with 5 additions and 5 deletions
|
|
@ -274,9 +274,9 @@ size_t snd_strlcat(char *dst, const char *src, size_t size);
|
|||
*/
|
||||
#ifndef NDEBUG
|
||||
#define CHECK_SANITY(x) x
|
||||
extern snd_lib_error_handler_t snd_err_msg;
|
||||
#define SNDMSG(args...) snd_err_msg(__FILE__, __LINE__, __func__, 0, ##args)
|
||||
#define SYSMSG(args...) snd_err_msg(__FILE__, __LINE__, __func__, errno, ##args)
|
||||
extern snd_lib_error_handler_t _snd_err_msg;
|
||||
#define SNDMSG(args...) _snd_err_msg(__FILE__, __LINE__, __func__, 0, ##args)
|
||||
#define SYSMSG(args...) _snd_err_msg(__FILE__, __LINE__, __func__, errno, ##args)
|
||||
#else
|
||||
#define CHECK_SANITY(x) 0 /* not evaluated */
|
||||
#define SNDMSG(args...) /* nop */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue