logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0002-Prevent-empty-top-level-declarations.patch (35016B)


  1. From c98863254a954696ee168a7a607b2fd60a8680ea Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Wed, 3 Jul 2019 18:15:11 -0700
  4. Subject: [PATCH] Prevent empty top-level declarations
  5. These macros may be defined as a function definition or defined
  6. away. In both cases, the ';' after the macro invocation to be treated
  7. as an empty top-level declaration, which is not allowed in ISO C.
  8. ---
  9. include/alsa-symbols.h | 8 ++++----
  10. src/conf.c | 4 ++--
  11. src/confmisc.c | 32 ++++++++++++++++----------------
  12. src/control/control.c | 6 +++---
  13. src/control/control_hw.c | 2 +-
  14. src/control/control_shm.c | 2 +-
  15. src/dlmisc.c | 4 ++--
  16. src/hwdep/hwdep_hw.c | 2 +-
  17. src/names.c | 4 ++--
  18. src/pcm/pcm.c | 30 +++++++++++++++---------------
  19. src/pcm/pcm_adpcm.c | 2 +-
  20. src/pcm/pcm_alaw.c | 2 +-
  21. src/pcm/pcm_asym.c | 2 +-
  22. src/pcm/pcm_copy.c | 2 +-
  23. src/pcm/pcm_dmix.c | 2 +-
  24. src/pcm/pcm_dshare.c | 2 +-
  25. src/pcm/pcm_dsnoop.c | 2 +-
  26. src/pcm/pcm_empty.c | 2 +-
  27. src/pcm/pcm_file.c | 2 +-
  28. src/pcm/pcm_hooks.c | 4 ++--
  29. src/pcm/pcm_hw.c | 2 +-
  30. src/pcm/pcm_iec958.c | 2 +-
  31. src/pcm/pcm_ladspa.c | 2 +-
  32. src/pcm/pcm_lfloat.c | 2 +-
  33. src/pcm/pcm_linear.c | 2 +-
  34. src/pcm/pcm_meter.c | 2 +-
  35. src/pcm/pcm_mmap_emul.c | 2 +-
  36. src/pcm/pcm_mulaw.c | 2 +-
  37. src/pcm/pcm_multi.c | 2 +-
  38. src/pcm/pcm_null.c | 2 +-
  39. src/pcm/pcm_plug.c | 2 +-
  40. src/pcm/pcm_rate.c | 2 +-
  41. src/pcm/pcm_route.c | 2 +-
  42. src/pcm/pcm_share.c | 2 +-
  43. src/pcm/pcm_shm.c | 2 +-
  44. src/pcm/pcm_softvol.c | 2 +-
  45. src/rawmidi/rawmidi_hw.c | 2 +-
  46. src/rawmidi/rawmidi_virt.c | 2 +-
  47. src/seq/seq_hw.c | 2 +-
  48. src/timer/timer.c | 10 +++++-----
  49. src/timer/timer_hw.c | 2 +-
  50. src/timer/timer_query.c | 6 +++---
  51. src/timer/timer_query_hw.c | 2 +-
  52. 43 files changed, 87 insertions(+), 87 deletions(-)
  53. diff --git a/include/alsa-symbols.h b/include/alsa-symbols.h
  54. index 2298cb50..be37f143 100644
  55. --- a/include/alsa-symbols.h
  56. +++ b/include/alsa-symbols.h
  57. @@ -36,9 +36,9 @@
  58. extern __typeof (real) real __attribute__((symver (#name "@@" #version)))
  59. #else
  60. #define symbol_version(real, name, version) \
  61. - __asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@" #version)
  62. + __asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@" #version);
  63. #define default_symbol_version(real, name, version) \
  64. - __asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@@" #version)
  65. + __asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@@" #version);
  66. #endif
  67. #ifdef __clang__
  68. @@ -57,11 +57,11 @@
  69. #if defined(__alpha__) || defined(__mips__)
  70. #define use_default_symbol_version(real, name, version) \
  71. __asm__ (".weak " ASM_NAME(#name)); \
  72. - __asm__ (ASM_NAME(#name) " = " ASM_NAME(#real))
  73. + __asm__ (ASM_NAME(#name) " = " ASM_NAME(#real));
  74. #else
  75. #define use_default_symbol_version(real, name, version) \
  76. __asm__ (".weak " ASM_NAME(#name)); \
  77. - __asm__ (".set " ASM_NAME(#name) "," ASM_NAME(#real))
  78. + __asm__ (".set " ASM_NAME(#name) "," ASM_NAME(#real));
  79. #endif
  80. #endif
  81. diff --git a/src/conf.c b/src/conf.c
  82. index eca44c03..25ed58c0 100644
  83. --- a/src/conf.c
  84. +++ b/src/conf.c
  85. @@ -4311,7 +4311,7 @@ int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_t
  86. return err;
  87. }
  88. #ifndef DOC_HIDDEN
  89. -SND_DLSYM_BUILD_VERSION(snd_config_hook_load, SND_CONFIG_DLSYM_VERSION_HOOK);
  90. +SND_DLSYM_BUILD_VERSION(snd_config_hook_load, SND_CONFIG_DLSYM_VERSION_HOOK)
  91. #endif
  92. #ifndef DOC_HIDDEN
  93. @@ -4481,7 +4481,7 @@ __fin_err:
  94. return err;
  95. }
  96. #ifndef DOC_HIDDEN
  97. -SND_DLSYM_BUILD_VERSION(snd_config_hook_load_for_all_cards, SND_CONFIG_DLSYM_VERSION_HOOK);
  98. +SND_DLSYM_BUILD_VERSION(snd_config_hook_load_for_all_cards, SND_CONFIG_DLSYM_VERSION_HOOK)
  99. #endif
  100. /**
  101. diff --git a/src/confmisc.c b/src/confmisc.c
  102. index 9b30d6c1..a819593d 100644
  103. --- a/src/confmisc.c
  104. +++ b/src/confmisc.c
  105. @@ -330,7 +330,7 @@ int snd_func_getenv(snd_config_t **dst, snd_config_t *root, snd_config_t *src,
  106. return err;
  107. }
  108. #ifndef DOC_HIDDEN
  109. -SND_DLSYM_BUILD_VERSION(snd_func_getenv, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  110. +SND_DLSYM_BUILD_VERSION(snd_func_getenv, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  111. #endif
  112. /**
  113. @@ -383,7 +383,7 @@ int snd_func_igetenv(snd_config_t **dst, snd_config_t *root, snd_config_t *src,
  114. return 0;
  115. }
  116. #ifndef DOC_HIDDEN
  117. -SND_DLSYM_BUILD_VERSION(snd_func_igetenv, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  118. +SND_DLSYM_BUILD_VERSION(snd_func_igetenv, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  119. #endif
  120. /**
  121. @@ -474,7 +474,7 @@ int snd_func_concat(snd_config_t **dst, snd_config_t *root, snd_config_t *src,
  122. return err;
  123. }
  124. #ifndef DOC_HIDDEN
  125. -SND_DLSYM_BUILD_VERSION(snd_func_concat, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  126. +SND_DLSYM_BUILD_VERSION(snd_func_concat, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  127. #endif
  128. @@ -563,7 +563,7 @@ int snd_func_iadd(snd_config_t **dst, snd_config_t *root,
  129. return snd_func_iops(dst, root, src, private_data, 0);
  130. }
  131. #ifndef DOC_HIDDEN
  132. -SND_DLSYM_BUILD_VERSION(snd_func_iadd, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  133. +SND_DLSYM_BUILD_VERSION(snd_func_iadd, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  134. #endif
  135. /**
  136. @@ -589,7 +589,7 @@ int snd_func_imul(snd_config_t **dst, snd_config_t *root,
  137. return snd_func_iops(dst, root, src, private_data, 1);
  138. }
  139. #ifndef DOC_HIDDEN
  140. -SND_DLSYM_BUILD_VERSION(snd_func_imul, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  141. +SND_DLSYM_BUILD_VERSION(snd_func_imul, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  142. #endif
  143. /**
  144. @@ -620,7 +620,7 @@ int snd_func_datadir(snd_config_t **dst, snd_config_t *root ATTRIBUTE_UNUSED,
  145. return snd_config_imake_string(dst, id, snd_config_topdir());
  146. }
  147. #ifndef DOC_HIDDEN
  148. -SND_DLSYM_BUILD_VERSION(snd_func_datadir, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  149. +SND_DLSYM_BUILD_VERSION(snd_func_datadir, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  150. #endif
  151. static int open_ctl(long card, snd_ctl_t **ctl)
  152. @@ -704,7 +704,7 @@ int snd_func_private_string(snd_config_t **dst, snd_config_t *root ATTRIBUTE_UNU
  153. return err;
  154. }
  155. #ifndef DOC_HIDDEN
  156. -SND_DLSYM_BUILD_VERSION(snd_func_private_string, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  157. +SND_DLSYM_BUILD_VERSION(snd_func_private_string, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  158. #endif
  159. /**
  160. @@ -825,7 +825,7 @@ int snd_func_private_card_driver(snd_config_t **dst, snd_config_t *root ATTRIBUT
  161. return err;
  162. }
  163. #ifndef DOC_HIDDEN
  164. -SND_DLSYM_BUILD_VERSION(snd_func_private_card_driver, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  165. +SND_DLSYM_BUILD_VERSION(snd_func_private_card_driver, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  166. #endif
  167. static int parse_card(snd_config_t *root, snd_config_t *src,
  168. @@ -889,7 +889,7 @@ int snd_func_card_inum(snd_config_t **dst, snd_config_t *root, snd_config_t *src
  169. return err;
  170. }
  171. #ifndef DOC_HIDDEN
  172. -SND_DLSYM_BUILD_VERSION(snd_func_card_inum, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  173. +SND_DLSYM_BUILD_VERSION(snd_func_card_inum, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  174. #endif
  175. /**
  176. @@ -926,7 +926,7 @@ int snd_func_card_driver(snd_config_t **dst, snd_config_t *root, snd_config_t *s
  177. return err;
  178. }
  179. #ifndef DOC_HIDDEN
  180. -SND_DLSYM_BUILD_VERSION(snd_func_card_driver, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  181. +SND_DLSYM_BUILD_VERSION(snd_func_card_driver, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  182. #endif
  183. /**
  184. @@ -977,7 +977,7 @@ int snd_func_card_id(snd_config_t **dst, snd_config_t *root, snd_config_t *src,
  185. return err;
  186. }
  187. #ifndef DOC_HIDDEN
  188. -SND_DLSYM_BUILD_VERSION(snd_func_card_id, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  189. +SND_DLSYM_BUILD_VERSION(snd_func_card_id, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  190. #endif
  191. /**
  192. @@ -1028,7 +1028,7 @@ int snd_func_card_name(snd_config_t **dst, snd_config_t *root,
  193. return err;
  194. }
  195. #ifndef DOC_HIDDEN
  196. -SND_DLSYM_BUILD_VERSION(snd_func_card_name, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  197. +SND_DLSYM_BUILD_VERSION(snd_func_card_name, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  198. #endif
  199. #ifdef DOXYGEN
  200. @@ -1122,7 +1122,7 @@ int snd_func_pcm_id(snd_config_t **dst, snd_config_t *root, snd_config_t *src, v
  201. return err;
  202. }
  203. #ifndef DOC_HIDDEN
  204. -SND_DLSYM_BUILD_VERSION(snd_func_pcm_id, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  205. +SND_DLSYM_BUILD_VERSION(snd_func_pcm_id, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  206. #endif
  207. /**
  208. @@ -1235,7 +1235,7 @@ int snd_func_pcm_args_by_class(snd_config_t **dst, snd_config_t *root, snd_confi
  209. return err;
  210. }
  211. #ifndef DOC_HIDDEN
  212. -SND_DLSYM_BUILD_VERSION(snd_func_pcm_args_by_class, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  213. +SND_DLSYM_BUILD_VERSION(snd_func_pcm_args_by_class, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  214. #endif
  215. /**
  216. @@ -1289,7 +1289,7 @@ int snd_func_private_pcm_subdevice(snd_config_t **dst, snd_config_t *root ATTRIB
  217. return err;
  218. }
  219. #ifndef DOC_HIDDEN
  220. -SND_DLSYM_BUILD_VERSION(snd_func_private_pcm_subdevice, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  221. +SND_DLSYM_BUILD_VERSION(snd_func_private_pcm_subdevice, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  222. #endif
  223. #endif /* BUILD_PCM */
  224. @@ -1391,7 +1391,7 @@ int snd_func_refer(snd_config_t **dst, snd_config_t *root, snd_config_t *src,
  225. return err;
  226. }
  227. #ifndef DOC_HIDDEN
  228. -SND_DLSYM_BUILD_VERSION(snd_func_refer, SND_CONFIG_DLSYM_VERSION_EVALUATE);
  229. +SND_DLSYM_BUILD_VERSION(snd_func_refer, SND_CONFIG_DLSYM_VERSION_EVALUATE)
  230. #endif
  231. #ifndef DOC_HIDDEN
  232. diff --git a/src/control/control.c b/src/control/control.c
  233. index d77ab24c..4c2ae7f5 100644
  234. --- a/src/control/control.c
  235. +++ b/src/control/control.c
  236. @@ -2738,7 +2738,7 @@ int snd_ctl_elem_info_is_indirect(const snd_ctl_elem_info_t *obj)
  237. assert(obj);
  238. return 0;
  239. }
  240. -link_warning(snd_ctl_elem_info_is_indirect, "Warning: snd_ctl_elem_info_is_indirect is deprecated, do not use it");
  241. +link_warning(snd_ctl_elem_info_is_indirect, "Warning: snd_ctl_elem_info_is_indirect is deprecated, do not use it")
  242. /**
  243. * \brief Get owner of a locked element
  244. @@ -2895,7 +2895,7 @@ int snd_ctl_elem_info_get_dimensions(const snd_ctl_elem_info_t *obj)
  245. return -EINVAL;
  246. #endif
  247. }
  248. -use_default_symbol_version(__snd_ctl_elem_info_get_dimensions, snd_ctl_elem_info_get_dimensions, ALSA_0.9.3);
  249. +use_default_symbol_version(__snd_ctl_elem_info_get_dimensions, snd_ctl_elem_info_get_dimensions, ALSA_0.9.3)
  250. /**
  251. * \brief Get specified of dimension width for given element
  252. @@ -2921,7 +2921,7 @@ int snd_ctl_elem_info_get_dimension(const snd_ctl_elem_info_t *obj, unsigned int
  253. return -EINVAL;
  254. #endif /* deprecated */
  255. }
  256. -use_default_symbol_version(__snd_ctl_elem_info_get_dimension, snd_ctl_elem_info_get_dimension, ALSA_0.9.3);
  257. +use_default_symbol_version(__snd_ctl_elem_info_get_dimension, snd_ctl_elem_info_get_dimension, ALSA_0.9.3)
  258. /**
  259. * \brief Set width to a specified dimension level of given element information.
  260. diff --git a/src/control/control_hw.c b/src/control/control_hw.c
  261. index a353767d..beba09bf 100644
  262. --- a/src/control/control_hw.c
  263. +++ b/src/control/control_hw.c
  264. @@ -547,5 +547,5 @@ int _snd_ctl_hw_open(snd_ctl_t **handlep, char *name, snd_config_t *root ATTRIBU
  265. return snd_ctl_hw_open(handlep, name, card, mode);
  266. }
  267. #ifndef DOC_HIDDEN
  268. -SND_DLSYM_BUILD_VERSION(_snd_ctl_hw_open, SND_CONTROL_DLSYM_VERSION);
  269. +SND_DLSYM_BUILD_VERSION(_snd_ctl_hw_open, SND_CONTROL_DLSYM_VERSION)
  270. #endif
  271. diff --git a/src/control/control_shm.c b/src/control/control_shm.c
  272. index 3d1555ee..135dd805 100644
  273. --- a/src/control/control_shm.c
  274. +++ b/src/control/control_shm.c
  275. @@ -619,4 +619,4 @@ int _snd_ctl_shm_open(snd_ctl_t **handlep, char *name, snd_config_t *root, snd_c
  276. snd_config_delete(sconfig);
  277. return err;
  278. }
  279. -SND_DLSYM_BUILD_VERSION(_snd_ctl_shm_open, SND_CONTROL_DLSYM_VERSION);
  280. +SND_DLSYM_BUILD_VERSION(_snd_ctl_shm_open, SND_CONTROL_DLSYM_VERSION)
  281. diff --git a/src/dlmisc.c b/src/dlmisc.c
  282. index d7aff456..96784197 100644
  283. --- a/src/dlmisc.c
  284. +++ b/src/dlmisc.c
  285. @@ -171,8 +171,8 @@ EXPORT_SYMBOL void *INTERNAL(snd_dlopen_old)(const char *name, int mode)
  286. #endif
  287. #ifndef DOC_HIDDEN
  288. -use_symbol_version(__snd_dlopen_old, snd_dlopen, ALSA_0.9);
  289. -use_default_symbol_version(__snd_dlopen, snd_dlopen, ALSA_1.1.6);
  290. +use_symbol_version(__snd_dlopen_old, snd_dlopen, ALSA_0.9)
  291. +use_default_symbol_version(__snd_dlopen, snd_dlopen, ALSA_1.1.6)
  292. #endif /* DOC_HIDDEN */
  293. /**
  294. diff --git a/src/hwdep/hwdep_hw.c b/src/hwdep/hwdep_hw.c
  295. index 0f28f23b..195c6107 100644
  296. --- a/src/hwdep/hwdep_hw.c
  297. +++ b/src/hwdep/hwdep_hw.c
  298. @@ -179,4 +179,4 @@ int _snd_hwdep_hw_open(snd_hwdep_t **hwdep, char *name,
  299. return -EINVAL;
  300. return snd_hwdep_hw_open(hwdep, name, card, device, mode);
  301. }
  302. -SND_DLSYM_BUILD_VERSION(_snd_hwdep_hw_open, SND_HWDEP_DLSYM_VERSION);
  303. +SND_DLSYM_BUILD_VERSION(_snd_hwdep_hw_open, SND_HWDEP_DLSYM_VERSION)
  304. diff --git a/src/names.c b/src/names.c
  305. index 922ef781..8e2f029f 100644
  306. --- a/src/names.c
  307. +++ b/src/names.c
  308. @@ -44,7 +44,7 @@ int snd_names_list(const char *iface ATTRIBUTE_UNUSED,
  309. {
  310. return -ENXIO;
  311. }
  312. -link_warning(snd_names_list, "Warning: snd_names_list is deprecated, use snd_device_name_hint");
  313. +link_warning(snd_names_list, "Warning: snd_names_list is deprecated, use snd_device_name_hint")
  314. /**
  315. * \brief This function is unimplemented.
  316. @@ -53,4 +53,4 @@ link_warning(snd_names_list, "Warning: snd_names_list is deprecated, use snd_dev
  317. void snd_names_list_free(snd_devname_t *list ATTRIBUTE_UNUSED)
  318. {
  319. }
  320. -link_warning(snd_names_list_free, "Warning: snd_names_list_free is deprecated, use snd_device_name_free_hint");
  321. +link_warning(snd_names_list_free, "Warning: snd_names_list_free is deprecated, use snd_device_name_free_hint")
  322. diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c
  323. index ab3bbda7..18b1246e 100644
  324. --- a/src/pcm/pcm.c
  325. +++ b/src/pcm/pcm.c
  326. @@ -1544,7 +1544,7 @@ snd_pcm_sframes_t snd_pcm_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
  327. snd_pcm_unlock(pcm->fast_op_arg);
  328. return result;
  329. }
  330. -use_default_symbol_version(__snd_pcm_forward, snd_pcm_forward, ALSA_0.9.0rc8);
  331. +use_default_symbol_version(__snd_pcm_forward, snd_pcm_forward, ALSA_0.9.0rc8)
  332. /**
  333. * \brief Write interleaved frames to a PCM
  334. @@ -2256,7 +2256,7 @@ const char *snd_pcm_start_mode_name(snd_pcm_start_t mode)
  335. }
  336. #ifndef DOC_HIDDEN
  337. -link_warning(snd_pcm_start_mode_name, "Warning: start_mode is deprecated, consider to use start_threshold");
  338. +link_warning(snd_pcm_start_mode_name, "Warning: start_mode is deprecated, consider to use start_threshold")
  339. #endif
  340. /**
  341. @@ -2272,7 +2272,7 @@ const char *snd_pcm_xrun_mode_name(snd_pcm_xrun_t mode)
  342. }
  343. #ifndef DOC_HIDDEN
  344. -link_warning(snd_pcm_xrun_mode_name, "Warning: xrun_mode is deprecated, consider to use stop_threshold");
  345. +link_warning(snd_pcm_xrun_mode_name, "Warning: xrun_mode is deprecated, consider to use stop_threshold")
  346. #endif
  347. /**
  348. @@ -2326,7 +2326,7 @@ const char *snd_pcm_type_name(snd_pcm_type_t type)
  349. return NULL;
  350. return snd_pcm_type_names[type];
  351. }
  352. -use_default_symbol_version(__snd_pcm_type_name, snd_pcm_type_name, ALSA_0.9.0);
  353. +use_default_symbol_version(__snd_pcm_type_name, snd_pcm_type_name, ALSA_0.9.0)
  354. /**
  355. * \brief Dump current hardware setup for PCM
  356. @@ -6466,7 +6466,7 @@ int snd_pcm_sw_params_set_start_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params
  357. }
  358. #ifndef DOC_HIDDEN
  359. -link_warning(snd_pcm_sw_params_set_start_mode, "Warning: start_mode is deprecated, consider to use start_threshold");
  360. +link_warning(snd_pcm_sw_params_set_start_mode, "Warning: start_mode is deprecated, consider to use start_threshold")
  361. #endif
  362. /**
  363. @@ -6482,7 +6482,7 @@ snd_pcm_start_t snd_pcm_sw_params_get_start_mode(const snd_pcm_sw_params_t *para
  364. }
  365. #ifndef DOC_HIDDEN
  366. -link_warning(snd_pcm_sw_params_get_start_mode, "Warning: start_mode is deprecated, consider to use start_threshold");
  367. +link_warning(snd_pcm_sw_params_get_start_mode, "Warning: start_mode is deprecated, consider to use start_threshold")
  368. #endif
  369. /**
  370. @@ -6514,7 +6514,7 @@ int snd_pcm_sw_params_set_xrun_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params,
  371. }
  372. #ifndef DOC_HIDDEN
  373. -link_warning(snd_pcm_sw_params_set_xrun_mode, "Warning: xrun_mode is deprecated, consider to use stop_threshold");
  374. +link_warning(snd_pcm_sw_params_set_xrun_mode, "Warning: xrun_mode is deprecated, consider to use stop_threshold")
  375. #endif
  376. /**
  377. @@ -6530,7 +6530,7 @@ snd_pcm_xrun_t snd_pcm_sw_params_get_xrun_mode(const snd_pcm_sw_params_t *params
  378. }
  379. #ifndef DOC_HIDDEN
  380. -link_warning(snd_pcm_sw_params_get_xrun_mode, "Warning: xrun_mode is deprecated, consider to use stop_threshold");
  381. +link_warning(snd_pcm_sw_params_get_xrun_mode, "Warning: xrun_mode is deprecated, consider to use stop_threshold")
  382. #endif
  383. /**
  384. @@ -7030,7 +7030,7 @@ void snd_pcm_status_get_trigger_htstamp(const snd_pcm_status_t *obj, snd_htimest
  385. assert(obj && ptr);
  386. *ptr = obj->trigger_tstamp;
  387. }
  388. -use_default_symbol_version(__snd_pcm_status_get_trigger_htstamp, snd_pcm_status_get_trigger_htstamp, ALSA_0.9.0rc8);
  389. +use_default_symbol_version(__snd_pcm_status_get_trigger_htstamp, snd_pcm_status_get_trigger_htstamp, ALSA_0.9.0rc8)
  390. /**
  391. * \brief Get "now" timestamp from a PCM status container
  392. @@ -7058,7 +7058,7 @@ void snd_pcm_status_get_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *p
  393. assert(obj && ptr);
  394. *ptr = obj->tstamp;
  395. }
  396. -use_default_symbol_version(__snd_pcm_status_get_htstamp, snd_pcm_status_get_htstamp, ALSA_0.9.0rc8);
  397. +use_default_symbol_version(__snd_pcm_status_get_htstamp, snd_pcm_status_get_htstamp, ALSA_0.9.0rc8)
  398. /**
  399. * \brief Get "now" hi-res audio timestamp from a PCM status container
  400. @@ -7752,8 +7752,8 @@ snd_pcm_uframes_t _snd_pcm_boundary(snd_pcm_t *pcm)
  401. }
  402. #ifndef DOC_HIDDEN
  403. -link_warning(_snd_pcm_mmap_hw_ptr, "Warning: _snd_pcm_mmap_hw_ptr() is deprecated, consider to not use this function");
  404. -link_warning(_snd_pcm_boundary, "Warning: _snd_pcm_boundary() is deprecated, consider to use snd_pcm_sw_params_current()");
  405. +link_warning(_snd_pcm_mmap_hw_ptr, "Warning: _snd_pcm_mmap_hw_ptr() is deprecated, consider to not use this function")
  406. +link_warning(_snd_pcm_boundary, "Warning: _snd_pcm_boundary() is deprecated, consider to use snd_pcm_sw_params_current()")
  407. #endif
  408. static const char *const names[SND_PCM_HW_PARAM_LAST_INTERVAL + 1] = {
  409. @@ -8018,13 +8018,13 @@ void snd_pcm_unlink_appl_ptr(snd_pcm_t *pcm, snd_pcm_t *slave)
  410. #ifdef USE_VERSIONED_SYMBOLS
  411. #define OBSOLETE1(name, what, new) \
  412. - default_symbol_version(__##name, name, new); \
  413. - symbol_version(__old_##name, name, what);
  414. + default_symbol_version(__##name, name, new) \
  415. + symbol_version(__old_##name, name, what)
  416. #else
  417. #define OBSOLETE1(name, what, new) \
  418. - use_default_symbol_version(__##name, name, new);
  419. + use_default_symbol_version(__##name, name, new)
  420. #endif /* USE_VERSIONED_SYMBOLS */
  421. diff --git a/src/pcm/pcm_adpcm.c b/src/pcm/pcm_adpcm.c
  422. index efd41451..fd9b9e8e 100644
  423. --- a/src/pcm/pcm_adpcm.c
  424. +++ b/src/pcm/pcm_adpcm.c
  425. @@ -677,5 +677,5 @@ int _snd_pcm_adpcm_open(snd_pcm_t **pcmp, const char *name,
  426. return err;
  427. }
  428. #ifndef DOC_HIDDEN
  429. -SND_DLSYM_BUILD_VERSION(_snd_pcm_adpcm_open, SND_PCM_DLSYM_VERSION);
  430. +SND_DLSYM_BUILD_VERSION(_snd_pcm_adpcm_open, SND_PCM_DLSYM_VERSION)
  431. #endif
  432. diff --git a/src/pcm/pcm_alaw.c b/src/pcm/pcm_alaw.c
  433. index 715b04c7..0a889183 100644
  434. --- a/src/pcm/pcm_alaw.c
  435. +++ b/src/pcm/pcm_alaw.c
  436. @@ -552,5 +552,5 @@ int _snd_pcm_alaw_open(snd_pcm_t **pcmp, const char *name,
  437. return err;
  438. }
  439. #ifndef DOC_HIDDEN
  440. -SND_DLSYM_BUILD_VERSION(_snd_pcm_alaw_open, SND_PCM_DLSYM_VERSION);
  441. +SND_DLSYM_BUILD_VERSION(_snd_pcm_alaw_open, SND_PCM_DLSYM_VERSION)
  442. #endif
  443. diff --git a/src/pcm/pcm_asym.c b/src/pcm/pcm_asym.c
  444. index 9c32b1b9..740a85fe 100644
  445. --- a/src/pcm/pcm_asym.c
  446. +++ b/src/pcm/pcm_asym.c
  447. @@ -115,5 +115,5 @@ int _snd_pcm_asym_open(snd_pcm_t **pcmp, const char *name ATTRIBUTE_UNUSED,
  448. return err;
  449. }
  450. #ifndef DOC_HIDDEN
  451. -SND_DLSYM_BUILD_VERSION(_snd_pcm_asym_open, SND_PCM_DLSYM_VERSION);
  452. +SND_DLSYM_BUILD_VERSION(_snd_pcm_asym_open, SND_PCM_DLSYM_VERSION)
  453. #endif
  454. diff --git a/src/pcm/pcm_copy.c b/src/pcm/pcm_copy.c
  455. index 1bf745d2..461bc36e 100644
  456. --- a/src/pcm/pcm_copy.c
  457. +++ b/src/pcm/pcm_copy.c
  458. @@ -298,5 +298,5 @@ int _snd_pcm_copy_open(snd_pcm_t **pcmp, const char *name,
  459. return err;
  460. }
  461. #ifndef DOC_HIDDEN
  462. -SND_DLSYM_BUILD_VERSION(_snd_pcm_copy_open, SND_PCM_DLSYM_VERSION);
  463. +SND_DLSYM_BUILD_VERSION(_snd_pcm_copy_open, SND_PCM_DLSYM_VERSION)
  464. #endif
  465. diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c
  466. index 55cae3e7..46d4f53e 100644
  467. --- a/src/pcm/pcm_dmix.c
  468. +++ b/src/pcm/pcm_dmix.c
  469. @@ -1339,5 +1339,5 @@ int _snd_pcm_dmix_open(snd_pcm_t **pcmp, const char *name,
  470. return err;
  471. }
  472. #ifndef DOC_HIDDEN
  473. -SND_DLSYM_BUILD_VERSION(_snd_pcm_dmix_open, SND_PCM_DLSYM_VERSION);
  474. +SND_DLSYM_BUILD_VERSION(_snd_pcm_dmix_open, SND_PCM_DLSYM_VERSION)
  475. #endif
  476. diff --git a/src/pcm/pcm_dshare.c b/src/pcm/pcm_dshare.c
  477. index c0329098..e2986d46 100644
  478. --- a/src/pcm/pcm_dshare.c
  479. +++ b/src/pcm/pcm_dshare.c
  480. @@ -968,5 +968,5 @@ int _snd_pcm_dshare_open(snd_pcm_t **pcmp, const char *name,
  481. return err;
  482. }
  483. #ifndef DOC_HIDDEN
  484. -SND_DLSYM_BUILD_VERSION(_snd_pcm_dshare_open, SND_PCM_DLSYM_VERSION);
  485. +SND_DLSYM_BUILD_VERSION(_snd_pcm_dshare_open, SND_PCM_DLSYM_VERSION)
  486. #endif
  487. diff --git a/src/pcm/pcm_dsnoop.c b/src/pcm/pcm_dsnoop.c
  488. index bf67c68a..6eb6f66b 100644
  489. --- a/src/pcm/pcm_dsnoop.c
  490. +++ b/src/pcm/pcm_dsnoop.c
  491. @@ -820,5 +820,5 @@ int _snd_pcm_dsnoop_open(snd_pcm_t **pcmp, const char *name,
  492. return err;
  493. }
  494. #ifndef DOC_HIDDEN
  495. -SND_DLSYM_BUILD_VERSION(_snd_pcm_dsnoop_open, SND_PCM_DLSYM_VERSION);
  496. +SND_DLSYM_BUILD_VERSION(_snd_pcm_dsnoop_open, SND_PCM_DLSYM_VERSION)
  497. #endif
  498. diff --git a/src/pcm/pcm_empty.c b/src/pcm/pcm_empty.c
  499. index 7cbd349f..c53b922b 100644
  500. --- a/src/pcm/pcm_empty.c
  501. +++ b/src/pcm/pcm_empty.c
  502. @@ -111,5 +111,5 @@ int _snd_pcm_empty_open(snd_pcm_t **pcmp, const char *name ATTRIBUTE_UNUSED,
  503. return err;
  504. }
  505. #ifndef DOC_HIDDEN
  506. -SND_DLSYM_BUILD_VERSION(_snd_pcm_empty_open, SND_PCM_DLSYM_VERSION);
  507. +SND_DLSYM_BUILD_VERSION(_snd_pcm_empty_open, SND_PCM_DLSYM_VERSION)
  508. #endif
  509. diff --git a/src/pcm/pcm_file.c b/src/pcm/pcm_file.c
  510. index 90b3f3f5..cd4c9b05 100644
  511. --- a/src/pcm/pcm_file.c
  512. +++ b/src/pcm/pcm_file.c
  513. @@ -1140,5 +1140,5 @@ int _snd_pcm_file_open(snd_pcm_t **pcmp, const char *name,
  514. return err;
  515. }
  516. #ifndef DOC_HIDDEN
  517. -SND_DLSYM_BUILD_VERSION(_snd_pcm_file_open, SND_PCM_DLSYM_VERSION);
  518. +SND_DLSYM_BUILD_VERSION(_snd_pcm_file_open, SND_PCM_DLSYM_VERSION)
  519. #endif
  520. diff --git a/src/pcm/pcm_hooks.c b/src/pcm/pcm_hooks.c
  521. index 4416d363..ed88dd29 100644
  522. --- a/src/pcm/pcm_hooks.c
  523. +++ b/src/pcm/pcm_hooks.c
  524. @@ -549,7 +549,7 @@ int _snd_pcm_hooks_open(snd_pcm_t **pcmp, const char *name,
  525. return 0;
  526. }
  527. #ifndef DOC_HIDDEN
  528. -SND_DLSYM_BUILD_VERSION(_snd_pcm_hooks_open, SND_PCM_DLSYM_VERSION);
  529. +SND_DLSYM_BUILD_VERSION(_snd_pcm_hooks_open, SND_PCM_DLSYM_VERSION)
  530. #endif
  531. /**
  532. @@ -724,5 +724,5 @@ int _snd_pcm_hook_ctl_elems_install(snd_pcm_t *pcm, snd_config_t *conf)
  533. return err;
  534. }
  535. #ifndef DOC_HIDDEN
  536. -SND_DLSYM_BUILD_VERSION(_snd_pcm_hook_ctl_elems_install, SND_PCM_DLSYM_VERSION);
  537. +SND_DLSYM_BUILD_VERSION(_snd_pcm_hook_ctl_elems_install, SND_PCM_DLSYM_VERSION)
  538. #endif
  539. diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c
  540. index bd3ecfc9..6e2fd971 100644
  541. --- a/src/pcm/pcm_hw.c
  542. +++ b/src/pcm/pcm_hw.c
  543. @@ -2070,7 +2070,7 @@ fail:
  544. }
  545. #ifndef DOC_HIDDEN
  546. -SND_DLSYM_BUILD_VERSION(_snd_pcm_hw_open, SND_PCM_DLSYM_VERSION);
  547. +SND_DLSYM_BUILD_VERSION(_snd_pcm_hw_open, SND_PCM_DLSYM_VERSION)
  548. #endif
  549. /*
  550. diff --git a/src/pcm/pcm_iec958.c b/src/pcm/pcm_iec958.c
  551. index 7b8459fb..1afe7393 100644
  552. --- a/src/pcm/pcm_iec958.c
  553. +++ b/src/pcm/pcm_iec958.c
  554. @@ -813,5 +813,5 @@ int _snd_pcm_iec958_open(snd_pcm_t **pcmp, const char *name,
  555. return err;
  556. }
  557. #ifndef DOC_HIDDEN
  558. -SND_DLSYM_BUILD_VERSION(_snd_pcm_iec958_open, SND_PCM_DLSYM_VERSION);
  559. +SND_DLSYM_BUILD_VERSION(_snd_pcm_iec958_open, SND_PCM_DLSYM_VERSION)
  560. #endif
  561. diff --git a/src/pcm/pcm_ladspa.c b/src/pcm/pcm_ladspa.c
  562. index 56ee138f..3ea7f70b 100644
  563. --- a/src/pcm/pcm_ladspa.c
  564. +++ b/src/pcm/pcm_ladspa.c
  565. @@ -1804,5 +1804,5 @@ int _snd_pcm_ladspa_open(snd_pcm_t **pcmp, const char *name,
  566. return err;
  567. }
  568. #ifndef DOC_HIDDEN
  569. -SND_DLSYM_BUILD_VERSION(_snd_pcm_ladspa_open, SND_PCM_DLSYM_VERSION);
  570. +SND_DLSYM_BUILD_VERSION(_snd_pcm_ladspa_open, SND_PCM_DLSYM_VERSION)
  571. #endif
  572. diff --git a/src/pcm/pcm_lfloat.c b/src/pcm/pcm_lfloat.c
  573. index d9aa136d..7785e4b9 100644
  574. --- a/src/pcm/pcm_lfloat.c
  575. +++ b/src/pcm/pcm_lfloat.c
  576. @@ -510,7 +510,7 @@ int _snd_pcm_lfloat_open(snd_pcm_t **pcmp, const char *name,
  577. return err;
  578. }
  579. #ifndef DOC_HIDDEN
  580. -SND_DLSYM_BUILD_VERSION(_snd_pcm_lfloat_open, SND_PCM_DLSYM_VERSION);
  581. +SND_DLSYM_BUILD_VERSION(_snd_pcm_lfloat_open, SND_PCM_DLSYM_VERSION)
  582. #endif
  583. #else /* BUGGY_GCC */
  584. diff --git a/src/pcm/pcm_linear.c b/src/pcm/pcm_linear.c
  585. index 81edccaa..c95d1b95 100644
  586. --- a/src/pcm/pcm_linear.c
  587. +++ b/src/pcm/pcm_linear.c
  588. @@ -552,5 +552,5 @@ int _snd_pcm_linear_open(snd_pcm_t **pcmp, const char *name,
  589. return err;
  590. }
  591. #ifndef DOC_HIDDEN
  592. -SND_DLSYM_BUILD_VERSION(_snd_pcm_linear_open, SND_PCM_DLSYM_VERSION);
  593. +SND_DLSYM_BUILD_VERSION(_snd_pcm_linear_open, SND_PCM_DLSYM_VERSION)
  594. #endif
  595. diff --git a/src/pcm/pcm_meter.c b/src/pcm/pcm_meter.c
  596. index 68c369de..947ef0f1 100644
  597. --- a/src/pcm/pcm_meter.c
  598. +++ b/src/pcm/pcm_meter.c
  599. @@ -835,7 +835,7 @@ int _snd_pcm_meter_open(snd_pcm_t **pcmp, const char *name,
  600. }
  601. return 0;
  602. }
  603. -SND_DLSYM_BUILD_VERSION(_snd_pcm_meter_open, SND_PCM_DLSYM_VERSION);
  604. +SND_DLSYM_BUILD_VERSION(_snd_pcm_meter_open, SND_PCM_DLSYM_VERSION)
  605. #endif
  606. diff --git a/src/pcm/pcm_mmap_emul.c b/src/pcm/pcm_mmap_emul.c
  607. index 009cebb3..0011ccf4 100644
  608. --- a/src/pcm/pcm_mmap_emul.c
  609. +++ b/src/pcm/pcm_mmap_emul.c
  610. @@ -510,5 +510,5 @@ int _snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name,
  611. }
  612. #ifndef DOC_HIDDEN
  613. -SND_DLSYM_BUILD_VERSION(_snd_pcm_mmap_emul_open, SND_PCM_DLSYM_VERSION);
  614. +SND_DLSYM_BUILD_VERSION(_snd_pcm_mmap_emul_open, SND_PCM_DLSYM_VERSION)
  615. #endif
  616. diff --git a/src/pcm/pcm_mulaw.c b/src/pcm/pcm_mulaw.c
  617. index 177a61bb..587fa54e 100644
  618. --- a/src/pcm/pcm_mulaw.c
  619. +++ b/src/pcm/pcm_mulaw.c
  620. @@ -565,5 +565,5 @@ int _snd_pcm_mulaw_open(snd_pcm_t **pcmp, const char *name,
  621. return err;
  622. }
  623. #ifndef DOC_HIDDEN
  624. -SND_DLSYM_BUILD_VERSION(_snd_pcm_mulaw_open, SND_PCM_DLSYM_VERSION);
  625. +SND_DLSYM_BUILD_VERSION(_snd_pcm_mulaw_open, SND_PCM_DLSYM_VERSION)
  626. #endif
  627. diff --git a/src/pcm/pcm_multi.c b/src/pcm/pcm_multi.c
  628. index 74e1e3f1..7320f46f 100644
  629. --- a/src/pcm/pcm_multi.c
  630. +++ b/src/pcm/pcm_multi.c
  631. @@ -1458,5 +1458,5 @@ _free:
  632. return err;
  633. }
  634. #ifndef DOC_HIDDEN
  635. -SND_DLSYM_BUILD_VERSION(_snd_pcm_multi_open, SND_PCM_DLSYM_VERSION);
  636. +SND_DLSYM_BUILD_VERSION(_snd_pcm_multi_open, SND_PCM_DLSYM_VERSION)
  637. #endif
  638. diff --git a/src/pcm/pcm_null.c b/src/pcm/pcm_null.c
  639. index f7b096bc..ad72d067 100644
  640. --- a/src/pcm/pcm_null.c
  641. +++ b/src/pcm/pcm_null.c
  642. @@ -501,5 +501,5 @@ int _snd_pcm_null_open(snd_pcm_t **pcmp, const char *name,
  643. return 0;
  644. }
  645. #ifndef DOC_HIDDEN
  646. -SND_DLSYM_BUILD_VERSION(_snd_pcm_null_open, SND_PCM_DLSYM_VERSION);
  647. +SND_DLSYM_BUILD_VERSION(_snd_pcm_null_open, SND_PCM_DLSYM_VERSION)
  648. #endif
  649. diff --git a/src/pcm/pcm_plug.c b/src/pcm/pcm_plug.c
  650. index e5a3a189..86a29920 100644
  651. --- a/src/pcm/pcm_plug.c
  652. +++ b/src/pcm/pcm_plug.c
  653. @@ -1344,5 +1344,5 @@ int _snd_pcm_plug_open(snd_pcm_t **pcmp, const char *name,
  654. return err;
  655. }
  656. #ifndef DOC_HIDDEN
  657. -SND_DLSYM_BUILD_VERSION(_snd_pcm_plug_open, SND_PCM_DLSYM_VERSION);
  658. +SND_DLSYM_BUILD_VERSION(_snd_pcm_plug_open, SND_PCM_DLSYM_VERSION)
  659. #endif
  660. diff --git a/src/pcm/pcm_rate.c b/src/pcm/pcm_rate.c
  661. index ef6b8006..5f0cc774 100644
  662. --- a/src/pcm/pcm_rate.c
  663. +++ b/src/pcm/pcm_rate.c
  664. @@ -1728,5 +1728,5 @@ int _snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name,
  665. return err;
  666. }
  667. #ifndef DOC_HIDDEN
  668. -SND_DLSYM_BUILD_VERSION(_snd_pcm_rate_open, SND_PCM_DLSYM_VERSION);
  669. +SND_DLSYM_BUILD_VERSION(_snd_pcm_rate_open, SND_PCM_DLSYM_VERSION)
  670. #endif
  671. diff --git a/src/pcm/pcm_route.c b/src/pcm/pcm_route.c
  672. index affb929f..737c8fa4 100644
  673. --- a/src/pcm/pcm_route.c
  674. +++ b/src/pcm/pcm_route.c
  675. @@ -1430,5 +1430,5 @@ int _snd_pcm_route_open(snd_pcm_t **pcmp, const char *name,
  676. return err;
  677. }
  678. #ifndef DOC_HIDDEN
  679. -SND_DLSYM_BUILD_VERSION(_snd_pcm_route_open, SND_PCM_DLSYM_VERSION);
  680. +SND_DLSYM_BUILD_VERSION(_snd_pcm_route_open, SND_PCM_DLSYM_VERSION)
  681. #endif
  682. diff --git a/src/pcm/pcm_share.c b/src/pcm/pcm_share.c
  683. index 0699fc87..ca0a6690 100644
  684. --- a/src/pcm/pcm_share.c
  685. +++ b/src/pcm/pcm_share.c
  686. @@ -1730,5 +1730,5 @@ _free:
  687. return err;
  688. }
  689. #ifndef DOC_HIDDEN
  690. -SND_DLSYM_BUILD_VERSION(_snd_pcm_share_open, SND_PCM_DLSYM_VERSION);
  691. +SND_DLSYM_BUILD_VERSION(_snd_pcm_share_open, SND_PCM_DLSYM_VERSION)
  692. #endif
  693. diff --git a/src/pcm/pcm_shm.c b/src/pcm/pcm_shm.c
  694. index d9596547..2804cc67 100644
  695. --- a/src/pcm/pcm_shm.c
  696. +++ b/src/pcm/pcm_shm.c
  697. @@ -904,5 +904,5 @@ int _snd_pcm_shm_open(snd_pcm_t **pcmp, const char *name,
  698. return err;
  699. }
  700. #ifndef DOC_HIDDEN
  701. -SND_DLSYM_BUILD_VERSION(_snd_pcm_shm_open, SND_PCM_DLSYM_VERSION);
  702. +SND_DLSYM_BUILD_VERSION(_snd_pcm_shm_open, SND_PCM_DLSYM_VERSION)
  703. #endif
  704. diff --git a/src/pcm/pcm_softvol.c b/src/pcm/pcm_softvol.c
  705. index 38c63679..3eaeceda 100644
  706. --- a/src/pcm/pcm_softvol.c
  707. +++ b/src/pcm/pcm_softvol.c
  708. @@ -1269,5 +1269,5 @@ int _snd_pcm_softvol_open(snd_pcm_t **pcmp, const char *name,
  709. return err;
  710. }
  711. #ifndef DOC_HIDDEN
  712. -SND_DLSYM_BUILD_VERSION(_snd_pcm_softvol_open, SND_PCM_DLSYM_VERSION);
  713. +SND_DLSYM_BUILD_VERSION(_snd_pcm_softvol_open, SND_PCM_DLSYM_VERSION)
  714. #endif
  715. diff --git a/src/rawmidi/rawmidi_hw.c b/src/rawmidi/rawmidi_hw.c
  716. index 3b1d941e..83f1090f 100644
  717. --- a/src/rawmidi/rawmidi_hw.c
  718. +++ b/src/rawmidi/rawmidi_hw.c
  719. @@ -511,4 +511,4 @@ int _snd_rawmidi_hw_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp,
  720. return -EINVAL;
  721. return snd_rawmidi_hw_open(inputp, outputp, name, card, device, subdevice, mode);
  722. }
  723. -SND_DLSYM_BUILD_VERSION(_snd_rawmidi_hw_open, SND_RAWMIDI_DLSYM_VERSION);
  724. +SND_DLSYM_BUILD_VERSION(_snd_rawmidi_hw_open, SND_RAWMIDI_DLSYM_VERSION)
  725. diff --git a/src/rawmidi/rawmidi_virt.c b/src/rawmidi/rawmidi_virt.c
  726. index 04c485d3..5bae8ea0 100644
  727. --- a/src/rawmidi/rawmidi_virt.c
  728. +++ b/src/rawmidi/rawmidi_virt.c
  729. @@ -466,5 +466,5 @@ int _snd_rawmidi_virtual_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp,
  730. }
  731. #ifndef DOC_HIDDEN
  732. -SND_DLSYM_BUILD_VERSION(_snd_rawmidi_virtual_open, SND_RAWMIDI_DLSYM_VERSION);
  733. +SND_DLSYM_BUILD_VERSION(_snd_rawmidi_virtual_open, SND_RAWMIDI_DLSYM_VERSION)
  734. #endif
  735. diff --git a/src/seq/seq_hw.c b/src/seq/seq_hw.c
  736. index eeaf26e1..d3229d72 100644
  737. --- a/src/seq/seq_hw.c
  738. +++ b/src/seq/seq_hw.c
  739. @@ -630,4 +630,4 @@ int _snd_seq_hw_open(snd_seq_t **handlep, char *name,
  740. }
  741. return snd_seq_hw_open(handlep, name, streams, mode);
  742. }
  743. -SND_DLSYM_BUILD_VERSION(_snd_seq_hw_open, SND_SEQ_DLSYM_VERSION);
  744. +SND_DLSYM_BUILD_VERSION(_snd_seq_hw_open, SND_SEQ_DLSYM_VERSION)
  745. diff --git a/src/timer/timer.c b/src/timer/timer.c
  746. index 0f8491b8..a139356b 100644
  747. --- a/src/timer/timer.c
  748. +++ b/src/timer/timer.c
  749. @@ -649,7 +649,7 @@ int snd_timer_params_set_exclusive(snd_timer_params_t * params, int exclusive)
  750. params->flags &= ~SNDRV_TIMER_PSFLG_EXCLUSIVE;
  751. return 0;
  752. }
  753. -use_default_symbol_version(__snd_timer_params_set_exclusive, snd_timer_params_set_exclusive, ALSA_0.9.0);
  754. +use_default_symbol_version(__snd_timer_params_set_exclusive, snd_timer_params_set_exclusive, ALSA_0.9.0)
  755. /**
  756. * \brief determine if timer has exclusive flag
  757. @@ -665,7 +665,7 @@ int snd_timer_params_get_exclusive(snd_timer_params_t * params)
  758. assert(params);
  759. return params->flags & SNDRV_TIMER_PSFLG_EXCLUSIVE ? 1 : 0;
  760. }
  761. -use_default_symbol_version(__snd_timer_params_get_exclusive, snd_timer_params_get_exclusive, ALSA_0.9.0);
  762. +use_default_symbol_version(__snd_timer_params_get_exclusive, snd_timer_params_get_exclusive, ALSA_0.9.0)
  763. /**
  764. * \brief set timer early event
  765. @@ -751,7 +751,7 @@ void snd_timer_params_set_filter(snd_timer_params_t * params, unsigned int filte
  766. assert(params);
  767. params->filter = filter;
  768. }
  769. -use_default_symbol_version(__snd_timer_params_set_filter, snd_timer_params_set_filter, ALSA_0.9.0);
  770. +use_default_symbol_version(__snd_timer_params_set_filter, snd_timer_params_set_filter, ALSA_0.9.0)
  771. /**
  772. * \brief get timer event filter
  773. @@ -767,7 +767,7 @@ unsigned int snd_timer_params_get_filter(snd_timer_params_t * params)
  774. assert(params);
  775. return params->filter;
  776. }
  777. -use_default_symbol_version(__snd_timer_params_get_filter, snd_timer_params_get_filter, ALSA_0.9.0);
  778. +use_default_symbol_version(__snd_timer_params_get_filter, snd_timer_params_get_filter, ALSA_0.9.0)
  779. /**
  780. * \brief set parameters for timer handle
  781. @@ -960,5 +960,5 @@ long snd_timer_info_get_ticks(snd_timer_info_t * info)
  782. return 1;
  783. }
  784. #ifndef DOC_HIDDEN
  785. -link_warning(snd_timer_info_get_ticks, "Warning: snd_timer_info_get_ticks is deprecated");
  786. +link_warning(snd_timer_info_get_ticks, "Warning: snd_timer_info_get_ticks is deprecated")
  787. #endif
  788. diff --git a/src/timer/timer_hw.c b/src/timer/timer_hw.c
  789. index fe4e40bb..884e6139 100644
  790. --- a/src/timer/timer_hw.c
  791. +++ b/src/timer/timer_hw.c
  792. @@ -332,4 +332,4 @@ int _snd_timer_hw_open(snd_timer_t **timer, char *name,
  793. }
  794. return snd_timer_hw_open(timer, name, dev_class, dev_sclass, card, device, subdevice, mode);
  795. }
  796. -SND_DLSYM_BUILD_VERSION(_snd_timer_hw_open, SND_TIMER_DLSYM_VERSION);
  797. +SND_DLSYM_BUILD_VERSION(_snd_timer_hw_open, SND_TIMER_DLSYM_VERSION)
  798. diff --git a/src/timer/timer_query.c b/src/timer/timer_query.c
  799. index 084ff61a..83543522 100644
  800. --- a/src/timer/timer_query.c
  801. +++ b/src/timer/timer_query.c
  802. @@ -393,7 +393,7 @@ int snd_timer_query_info(snd_timer_query_t *timer, snd_timer_ginfo_t *info)
  803. assert(info);
  804. return timer->ops->info(timer, info);
  805. }
  806. -use_default_symbol_version(__snd_timer_query_info, snd_timer_query_info, ALSA_0.9.0);
  807. +use_default_symbol_version(__snd_timer_query_info, snd_timer_query_info, ALSA_0.9.0)
  808. /**
  809. * \brief set the timer global parameters
  810. @@ -411,7 +411,7 @@ int snd_timer_query_params(snd_timer_query_t *timer, snd_timer_gparams_t *params
  811. assert(params);
  812. return timer->ops->params(timer, params);
  813. }
  814. -use_default_symbol_version(__snd_timer_query_params, snd_timer_query_params, ALSA_0.9.0);
  815. +use_default_symbol_version(__snd_timer_query_params, snd_timer_query_params, ALSA_0.9.0)
  816. /**
  817. * \brief get the timer global status
  818. @@ -429,7 +429,7 @@ int snd_timer_query_status(snd_timer_query_t *timer, snd_timer_gstatus_t *status
  819. assert(status);
  820. return timer->ops->status(timer, status);
  821. }
  822. -use_default_symbol_version(__snd_timer_query_status, snd_timer_query_status, ALSA_0.9.0);
  823. +use_default_symbol_version(__snd_timer_query_status, snd_timer_query_status, ALSA_0.9.0)
  824. /**
  825. * \brief get size of the snd_timer_id_t structure in bytes
  826. diff --git a/src/timer/timer_query_hw.c b/src/timer/timer_query_hw.c
  827. index d8bac6e7..8c464fc3 100644
  828. --- a/src/timer/timer_query_hw.c
  829. +++ b/src/timer/timer_query_hw.c
  830. @@ -135,4 +135,4 @@ int _snd_timer_query_hw_open(snd_timer_query_t **timer, char *name,
  831. }
  832. return snd_timer_query_hw_open(timer, name, mode);
  833. }
  834. -SND_DLSYM_BUILD_VERSION(_snd_timer_query_hw_open, SND_TIMER_QUERY_DLSYM_VERSION);
  835. +SND_DLSYM_BUILD_VERSION(_snd_timer_query_hw_open, SND_TIMER_QUERY_DLSYM_VERSION)
  836. --
  837. 2.44.0