]> git.pld-linux.org Git - packages/alsa-utils.git/blob - alsa-utils-no-c2x.patch
- added no-c2x patch to allow build without C23 nameless parameters support
[packages/alsa-utils.git] / alsa-utils-no-c2x.patch
1 --- alsa-utils-1.2.10/amidi/amidi.c.orig        2023-09-01 17:36:26.000000000 +0200
2 +++ alsa-utils-1.2.10/amidi/amidi.c     2023-09-02 20:03:00.505305458 +0200
3 @@ -446,7 +446,7 @@ static void print_byte(unsigned char byt
4         printf("%02X", byte);
5  }
6  
7 -static void sig_handler(int)
8 +static void sig_handler(int s_ __attribute__((unused)))
9  {
10         stop = 1;
11  }
12 --- alsa-utils-1.2.10/axfer/subcmd-list.c.orig  2023-09-01 17:36:26.000000000 +0200
13 +++ alsa-utils-1.2.10/axfer/subcmd-list.c       2023-09-02 20:16:45.004172097 +0200
14 @@ -19,7 +19,7 @@ enum list_op {
15  };
16  
17  static int dump_device(snd_ctl_t *handle, const char *id, const char *name,
18 -                      snd_pcm_stream_t, snd_pcm_info_t *info)
19 +                      snd_pcm_stream_t s_ __attribute__((unused)), snd_pcm_info_t *info)
20  {
21         unsigned int i, count;
22         int err;
23 --- alsa-utils-1.2.10/axfer/container-raw.c.orig        2023-09-01 17:36:26.000000000 +0200
24 +++ alsa-utils-1.2.10/axfer/container-raw.c     2023-09-02 21:08:46.753926794 +0200
25 @@ -13,10 +13,10 @@
26  #include <sys/stat.h>
27  #include <unistd.h>
28  
29 -static int raw_builder_pre_process(struct container_context *,
30 -                                  snd_pcm_format_t *,
31 -                                  unsigned int *,
32 -                                  unsigned int *,
33 +static int raw_builder_pre_process(struct container_context *a_ __attribute__((unused)),
34 +                                  snd_pcm_format_t *b_ __attribute__((unused)),
35 +                                  unsigned int *c_ __attribute__((unused)),
36 +                                  unsigned int *d_ __attribute__((unused)),
37                                    uint64_t *byte_count)
38  {
39         *byte_count = UINT64_MAX;
40 @@ -25,9 +25,9 @@ static int raw_builder_pre_process(struc
41  }
42  
43  static int raw_parser_pre_process(struct container_context *cntr,
44 -                                 snd_pcm_format_t *,
45 -                                 unsigned int *,
46 -                                 unsigned int *,
47 +                                 snd_pcm_format_t *a_ __attribute__((unused)),
48 +                                 unsigned int *b_ __attribute__((unused)),
49 +                                 unsigned int *c_ __attribute__((unused)),
50                                   uint64_t *byte_count)
51  {
52         struct stat buf = {0};
53 --- alsa-utils-1.2.10/axfer/mapper-single.c.orig        2023-09-01 17:36:26.000000000 +0200
54 +++ alsa-utils-1.2.10/axfer/mapper-single.c     2023-09-02 21:14:31.962056641 +0200
55 @@ -62,7 +62,7 @@ static void align_from_vector(void *fram
56  
57  static int single_pre_process(struct mapper_context *mapper,
58                               struct container_context *cntrs,
59 -                             unsigned int)
60 +                             unsigned int a_ __attribute__((unused)))
61  {
62         struct single_state *state = mapper->private_data;
63         unsigned int bytes_per_buffer;
64 @@ -110,7 +110,7 @@ static int single_muxer_process_frames(s
65                                        void *frame_buf,
66                                        unsigned int *frame_count,
67                                        struct container_context *cntrs,
68 -                                      unsigned int)
69 +                                      unsigned int a_ __attribute__((unused)))
70  {
71         struct single_state *state = mapper->private_data;
72         void *src;
73 @@ -141,7 +141,7 @@ static int single_demuxer_process_frames
74                                          void *frame_buf,
75                                          unsigned int *frame_count,
76                                          struct container_context *cntrs,
77 -                                        unsigned int)
78 +                                        unsigned int a_ __attribute__((unused)))
79  {
80         struct single_state *state = mapper->private_data;
81         void *dst;
82 --- alsa-utils-1.2.10/axfer/xfer-options.c.orig 2023-09-01 17:36:26.000000000 +0200
83 +++ alsa-utils-1.2.10/axfer/xfer-options.c      2023-09-02 21:15:24.808437014 +0200
84 @@ -447,7 +447,7 @@ static int generate_path_with_suffix(str
85  
86  static int generate_path_without_suffix(struct xfer_context *xfer,
87                                         const char *template,
88 -                                       unsigned int index, const char *)
89 +                                       unsigned int index, const char * a_ __attribute__((unused)))
90  {
91         static const char *const single_format = "%s";
92         static const char *const multiple_format = "%s-%i";
93 --- alsa-utils-1.2.10/axfer/xfer-libasound.c.orig       2023-09-01 17:36:26.000000000 +0200
94 +++ alsa-utils-1.2.10/axfer/xfer-libasound.c    2023-09-02 21:17:16.931162927 +0200
95 @@ -60,7 +60,7 @@ static const struct option l_opts[] = {
96  };
97  
98  static int xfer_libasound_init(struct xfer_context *xfer,
99 -                              snd_pcm_stream_t)
100 +                              snd_pcm_stream_t a_ __attribute__((unused)))
101  {
102         struct libasound_state *state = xfer->private_data;
103         int err;
104 @@ -887,7 +887,7 @@ static void xfer_libasound_destroy(struc
105         state->log = NULL;
106  }
107  
108 -static void xfer_libasound_help(struct xfer_context *)
109 +static void xfer_libasound_help(struct xfer_context *a_ __attribute__((unused)))
110  {
111         printf(
112  "      [BASICS]\n"
113 --- alsa-utils-1.2.10/axfer/xfer-libasound-irq-rw.c.orig        2023-09-01 17:36:26.000000000 +0200
114 +++ alsa-utils-1.2.10/axfer/xfer-libasound-irq-rw.c     2023-09-02 21:17:47.560996991 +0200
115 @@ -313,7 +313,7 @@ error:
116  }
117  
118  static int w_process_frames_nonblocking(struct libasound_state *state,
119 -                                       snd_pcm_state_t,
120 +                                       snd_pcm_state_t a_ __attribute__((unused)),
121                                         unsigned int *frame_count,
122                                         struct mapper_context *mapper,
123                                         struct container_context *cntrs)
124 --- alsa-utils-1.2.10/axfer/subcmd-transfer.c.orig      2023-09-01 17:36:26.000000000 +0200
125 +++ alsa-utils-1.2.10/axfer/subcmd-transfer.c   2023-09-02 21:18:46.827342584 +0200
126 @@ -40,7 +40,7 @@ static void handle_unix_signal_for_finis
127         ctx_ptr->interrupted = true;
128  }
129  
130 -static void handle_unix_signal_for_suspend(int)
131 +static void handle_unix_signal_for_suspend(int a_ __attribute__((unused)))
132  {
133         sigset_t curr, prev;
134         struct sigaction sa = {0};
135 @@ -439,7 +439,7 @@ static int context_process_frames(struct
136  }
137  
138  static void context_post_process(struct context *ctx,
139 -                                uint64_t)
140 +                                uint64_t a_ __attribute__((unused)))
141  {
142         uint64_t total_frame_count;
143         unsigned int i;
144 --- alsa-utils-1.2.10/axfer/waiter-poll.c.orig  2023-09-01 17:36:26.000000000 +0200
145 +++ alsa-utils-1.2.10/axfer/waiter-poll.c       2023-09-02 21:19:19.080501187 +0200
146 @@ -13,7 +13,7 @@
147  #include <errno.h>
148  #include <poll.h>
149  
150 -static int poll_prepare(struct waiter_context *)
151 +static int poll_prepare(struct waiter_context *a_ __attribute__((unused)))
152  {
153         // Nothing to do because an instance of waiter has required data.
154         return 0;
155 @@ -30,7 +30,7 @@ static int poll_wait_event(struct waiter
156         return err;
157  }
158  
159 -static void poll_release(struct waiter_context *)
160 +static void poll_release(struct waiter_context *a_ __attribute__((unused)))
161  {
162         // Nothing to do because an instance of waiter has required data.
163         return;
164 --- alsa-utils-1.2.10/axfer/waiter-select.c.orig        2023-09-01 17:36:26.000000000 +0200
165 +++ alsa-utils-1.2.10/axfer/waiter-select.c     2023-09-02 21:19:43.787034007 +0200
166 @@ -34,7 +34,7 @@ struct select_state {
167         fd_set rfds_ex;
168  };
169  
170 -static int select_prepare(struct waiter_context *)
171 +static int select_prepare(struct waiter_context *a_ __attribute__((unused)))
172  {
173         return 0;
174  }
175 @@ -94,7 +94,7 @@ static int select_wait_event(struct wait
176         return err;
177  }
178  
179 -static void select_release(struct waiter_context *)
180 +static void select_release(struct waiter_context *a_ __attribute__((unused)))
181  {
182         return;
183  }
184 --- alsa-utils-1.2.10/alsaloop/alsaloop.c.orig  2023-09-01 17:36:26.000000000 +0200
185 +++ alsa-utils-1.2.10/alsaloop/alsaloop.c       2023-09-02 21:20:45.673365406 +0200
186 @@ -821,7 +821,7 @@ static void send_to_all(int sig)
187         }
188  }
189  
190 -static void signal_handler(int)
191 +static void signal_handler(int s_ __attribute__((unused)))
192  {
193         quit = 1;
194         send_to_all(SIGUSR2);
195 --- alsa-utils-1.2.10/alsaloop/pcmjob.c.orig    2023-09-01 17:36:26.000000000 +0200
196 +++ alsa-utils-1.2.10/alsaloop/pcmjob.c 2023-09-02 21:26:37.174794493 +0200
197 @@ -1794,7 +1794,7 @@ static int ctl_event_check(snd_ctl_elem_
198  }
199  
200  static int handle_ctl_events(struct loopback_handle *lhandle,
201 -                            unsigned short)
202 +                            unsigned short a_ __attribute__((unused)))
203  {
204         struct loopback *loop = lhandle->loopback;
205         snd_ctl_event_t *ev;
206 --- alsa-utils-1.2.10/bat/bat.c.orig    2023-09-01 17:36:26.000000000 +0200
207 +++ alsa-utils-1.2.10/bat/bat.c 2023-09-02 21:27:30.267840197 +0200
208 @@ -158,7 +158,7 @@ static void get_format(struct bat *bat,
209         }
210  }
211  
212 -static inline int thread_wait_completion(struct bat *, pthread_t id, int **val)
213 +static inline int thread_wait_completion(struct bat *a_ __attribute__((unused)), pthread_t id, int **val)
214  {
215         int err;
216  
217 --- alsa-utils-1.2.10/bat/common.c.orig 2023-09-01 17:36:26.000000000 +0200
218 +++ alsa-utils-1.2.10/bat/common.c      2023-09-02 21:28:16.034258925 +0200
219 @@ -47,7 +47,7 @@ static int update_fmt_to_bat(struct bat
220  }
221  
222  /* calculate frames and update to bat */
223 -static int update_frames_to_bat(struct bat *bat, struct wav_chunk_header *header, FILE *)
224 +static int update_frames_to_bat(struct bat *bat, struct wav_chunk_header *header, FILE *f_ __attribute__((unused)))
225  {
226         /* The number of analyzed captured frames is arbitrarily set to half of
227            the number of frames of the wav file or the number of frames of the
228 --- alsa-utils-1.2.10/seq/aconnect/aconnect.c.orig      2023-09-01 17:36:26.000000000 +0200
229 +++ alsa-utils-1.2.10/seq/aconnect/aconnect.c   2023-09-02 21:29:22.800563888 +0200
230 @@ -193,7 +193,7 @@ static void do_search_port(snd_seq_t *se
231  }
232  
233  
234 -static void print_port(snd_seq_t *, snd_seq_client_info_t *cinfo,
235 +static void print_port(snd_seq_t *s_ __attribute__((unused)), snd_seq_client_info_t *cinfo,
236                        snd_seq_port_info_t *pinfo, int count)
237  {
238         if (! count) {
239 @@ -247,8 +247,8 @@ static void print_port_and_subs(snd_seq_
240  /*
241   * remove all (exported) connections
242   */
243 -static void remove_connection(snd_seq_t *seq, snd_seq_client_info_t *,
244 -                             snd_seq_port_info_t *pinfo, int)
245 +static void remove_connection(snd_seq_t *seq, snd_seq_client_info_t *s __attribute__((unused)),
246 +                             snd_seq_port_info_t *pinfo, int a_ __attribute__((unused)))
247  {
248         snd_seq_query_subscribe_t *query;
249         snd_seq_port_info_t *port;
250 --- alsa-utils-1.2.10/seq/aplaymidi/arecordmidi.c.orig  2023-09-01 17:36:26.000000000 +0200
251 +++ alsa-utils-1.2.10/seq/aplaymidi/arecordmidi.c       2023-09-02 21:30:11.200301684 +0200
252 @@ -719,7 +719,7 @@ static void version(void)
253         fputs("arecordmidi version " SND_UTIL_VERSION_STR "\n", stderr);
254  }
255  
256 -static void sighandler(int)
257 +static void sighandler(int s_ __attribute__((unused)))
258  {
259         stop = 1;
260  }
261 --- alsa-utils-1.2.10/seq/aseqdump/aseqdump.c.orig      2023-09-01 17:36:26.000000000 +0200
262 +++ alsa-utils-1.2.10/seq/aseqdump/aseqdump.c   2023-09-02 21:30:40.380143603 +0200
263 @@ -676,7 +676,7 @@ static void version(void)
264         puts("aseqdump version " SND_UTIL_VERSION_STR);
265  }
266  
267 -static void sighandler(int)
268 +static void sighandler(int s_ __attribute__((unused)))
269  {
270         stop = 1;
271  }
272 --- alsa-utils-1.2.10/seq/aseqnet/aseqnet.c.orig        2023-09-01 17:36:26.000000000 +0200
273 +++ alsa-utils-1.2.10/seq/aseqnet/aseqnet.c     2023-09-02 21:32:12.056313617 +0200
274 @@ -334,7 +334,7 @@ static void get_net_addr(struct addrinfo
275  /*
276   * signal handler
277   */
278 -static void sigterm_exit(int)
279 +static void sigterm_exit(int s_ __attribute__((unused)))
280  {
281         close_files();
282         exit(1);
283 --- alsa-utils-1.2.10/alsaucm/dump.c.orig       2023-09-01 17:36:26.000000000 +0200
284 +++ alsa-utils-1.2.10/alsaucm/dump.c    2023-09-02 21:34:01.105722846 +0200
285 @@ -93,7 +93,7 @@ static char *tesc(const char *s, char *b
286  
287  #define ESC(s, esc) tesc((s), (esc), sizeof(esc))
288  
289 -static int text_verb_start(struct renderer *, const char *verb, const char *comment)
290 +static int text_verb_start(struct renderer *r_ __attribute__((unused)), const char *verb, const char *comment)
291  {
292         char buf1[128], buf2[128];
293         printf("Verb.%s {\n", ESC(verb, buf1));
294 @@ -102,13 +102,13 @@ static int text_verb_start(struct render
295         return 0;
296  }
297  
298 -static int text_verb_end(struct renderer *)
299 +static int text_verb_end(struct renderer *r_ __attribute__((unused)))
300  {
301         printf("}\n");
302         return 0;
303  }
304  
305 -static int text_2nd_level_begin(struct renderer *,
306 +static int text_2nd_level_begin(struct renderer *r_ __attribute__((unused)),
307                                 const char *key,
308                                 const char *val,
309                                 const char *comment)
310 @@ -120,19 +120,19 @@ static int text_2nd_level_begin(struct r
311         return 0;
312  }
313  
314 -static int text_2nd_level_end(struct renderer *)
315 +static int text_2nd_level_end(struct renderer *r_ __attribute__((unused)))
316  {
317         printf("\t}\n");
318         return 0;
319  }
320  
321 -static int text_2nd_level(struct renderer *, const char *txt)
322 +static int text_2nd_level(struct renderer *r_ __attribute__((unused)), const char *txt)
323  {
324         printf("\t\t%s", txt);
325         return 0;
326  }
327  
328 -static int text_3rd_level(struct renderer *, const char *txt)
329 +static int text_3rd_level(struct renderer *r_ __attribute__((unused)), const char *txt)
330  {
331         printf("\t\t\t%s", txt);
332         return 0;
333 @@ -266,7 +266,7 @@ static void json_block(struct renderer *
334         j->block[level] = last ? 0 : 1;
335  }
336  
337 -static int json_init(struct renderer *)
338 +static int json_init(struct renderer *r_ __attribute__((unused)))
339  {
340         printf("{\n  \"Verbs\": {");
341         return 0;
342 @@ -325,13 +325,13 @@ static int json_2nd_level_end(struct ren
343         return 0;
344  }
345  
346 -static int json_2nd_level(struct renderer *, const char *txt)
347 +static int json_2nd_level(struct renderer *r_ __attribute__((unused)), const char *txt)
348  {
349         printf("          %s", txt);
350         return 0;
351  }
352  
353 -static int json_3rd_level(struct renderer *, const char *txt)
354 +static int json_3rd_level(struct renderer *r_ __attribute__((unused)), const char *txt)
355  {
356         printf("            %s", txt);
357         return 0;
358 @@ -360,7 +360,7 @@ static int json_supcon_start(struct rend
359         return 0;
360  }
361  
362 -static int json_supcon_value(struct renderer *r, const char *value, int)
363 +static int json_supcon_value(struct renderer *r, const char *value, int a_ __attribute__((unused)))
364  {
365         char buf[256];
366         JESC(value, buf);
367 --- alsa-utils-1.2.10/topology/nhlt/nhlt-processor.c.orig       2023-09-01 17:36:26.000000000 +0200
368 +++ alsa-utils-1.2.10/topology/nhlt/nhlt-processor.c    2023-09-02 21:35:13.741996008 +0200
369 @@ -87,7 +87,7 @@ static void debug_print_nhlt(struct nhlt
370         fprintf(stdout, "\n");
371  }
372  #else
373 -static void debug_print_nhlt(struct nhlt *, struct endpoint_descriptor **) {}
374 +static void debug_print_nhlt(struct nhlt *n_ __attribute__((unused)), struct endpoint_descriptor **d_ __attribute__((unused))) {}
375  #endif
376  
377  static int print_as_hex_bytes(uint8_t *manifest_buffer, uint32_t manifest_size,
378 @@ -313,7 +313,7 @@ static int nhlt_get_flat_buffer(struct n
379  }
380  
381  /* called at the end of topology pre-processing, create flat buffer from variable size nhlt */
382 -static int nhlt_create(struct intel_nhlt_params *nhlt, snd_config_t *input, snd_config_t *,
383 +static int nhlt_create(struct intel_nhlt_params *nhlt, snd_config_t *input, snd_config_t *c_ __attribute__((unused)),
384                        uint8_t **nhlt_buffer, uint32_t *nhlt_size)
385  {
386         struct endpoint_descriptor *eps[MAX_ENDPOINT_COUNT];
387 --- alsa-utils-1.2.10/topology/nhlt/intel/dmic-nhlt.c.orig      2023-09-01 17:36:26.000000000 +0200
388 +++ alsa-utils-1.2.10/topology/nhlt/intel/dmic-nhlt.c   2023-09-02 21:35:49.855133700 +0200
389 @@ -155,7 +155,7 @@ static int set_vendor_mic_data(struct in
390                                    horizontal_angle_end);
391  }
392  
393 -static int set_bytes_data(struct intel_nhlt_params *, snd_config_t *cfg)
394 +static int set_bytes_data(struct intel_nhlt_params *p_ __attribute__((unused)), snd_config_t *cfg)
395  {
396         snd_config_iterator_t i, next;
397         snd_config_t *n;
398 --- alsa-utils-1.2.10/topology/nhlt/intel/dmic/dmic-debug.c.orig        2023-09-01 17:36:26.000000000 +0200
399 +++ alsa-utils-1.2.10/topology/nhlt/intel/dmic/dmic-debug.c     2023-09-02 21:36:47.964818893 +0200
400 @@ -181,7 +181,7 @@ void dmic_print_internal(struct intel_dm
401  }
402  
403  #else /* NHLT_DEBUG */
404 -void dmic_print_bytes_as_hex(uint8_t *, size_t) {}
405 -void dmic_print_integers_as_hex(uint32_t *, size_t) {}
406 -void dmic_print_internal(struct intel_dmic_params *) {}
407 +void dmic_print_bytes_as_hex(uint8_t *a_ __attribute__((unused)), size_t s_ __attribute__((unused))) {}
408 +void dmic_print_integers_as_hex(uint32_t *a_ __attribute__((unused)), size_t s_ __attribute__((unused))) {}
409 +void dmic_print_internal(struct intel_dmic_params *p_ __attribute((unused))) {}
410  #endif
411 --- alsa-utils-1.2.10/topology/nhlt/intel/ssp/ssp-debug.c.orig  2023-09-01 17:36:26.000000000 +0200
412 +++ alsa-utils-1.2.10/topology/nhlt/intel/ssp/ssp-debug.c       2023-09-02 21:37:14.978005883 +0200
413 @@ -252,6 +252,6 @@ void ssp_print_internal(struct intel_ssp
414  }
415  
416  #else /* NHLT_DEBUG */
417 -void ssp_print_internal(struct intel_ssp_params *) {}
418 -void ssp_print_calculated(struct intel_ssp_params *) {}
419 +void ssp_print_internal(struct intel_ssp_params *p_ __attribute__((unused))) {}
420 +void ssp_print_calculated(struct intel_ssp_params *p_ __attribute__((unused))) {}
421  #endif
422 --- alsa-utils-1.2.10/topology/nhlt/intel/ssp/ssp-process.c.orig        2023-09-01 17:36:26.000000000 +0200
423 +++ alsa-utils-1.2.10/topology/nhlt/intel/ssp/ssp-process.c     2023-09-02 21:38:03.801074719 +0200
424 @@ -952,7 +952,7 @@ int ssp_set_params(struct intel_nhlt_par
425         return 0;
426  }
427  
428 -int ssp_hw_set_params(struct intel_nhlt_params *nhlt, const char *format, const char *,
429 +int ssp_hw_set_params(struct intel_nhlt_params *nhlt, const char *format, const char *s_ __attribute__((unused)),
430                       const char *bclk, const char *bclk_invert, const char *fsync,
431                       const char *fsync_invert, int mclk_freq, int bclk_freq, int fsync_freq,
432                       int tdm_slots, int tdm_slot_width, int tx_slots, int rx_slots)
433 --- alsa-utils-1.2.10/topology/pre-processor.c.orig     2023-09-01 17:36:26.000000000 +0200
434 +++ alsa-utils-1.2.10/topology/pre-processor.c  2023-09-02 21:38:59.357440411 +0200
435 @@ -231,8 +231,8 @@ void tplg_pp_config_debug(struct tplg_pr
436         snd_config_save(cfg, tplg_pp->dbg_output);
437  }
438  #else
439 -void tplg_pp_debug(char *, ...) {}
440 -void tplg_pp_config_debug(struct tplg_pre_processor *, snd_config_t *){}
441 +void tplg_pp_debug(char *p_ __attribute__((unused)), ...) {}
442 +void tplg_pp_config_debug(struct tplg_pre_processor *p_ __attribute__((unused)), snd_config_t *c_ __attribute__((unused))){}
443  #endif
444  
445  static int pre_process_config(struct tplg_pre_processor *tplg_pp, snd_config_t *cfg)
446 @@ -640,7 +640,7 @@ static int pre_process_includes_all(stru
447  }
448  
449  /* duplicate the existing objects in src into dest and update with new attribute */
450 -static int pre_process_add_objects(struct tplg_pre_processor *, int *object_count,
451 +static int pre_process_add_objects(struct tplg_pre_processor *p_ __attribute__((unused)), int *object_count,
452                                    snd_config_t *src, snd_config_t *dest, snd_config_t *attr_cfg)
453  {
454         snd_config_iterator_t i, next;
455 --- alsa-utils-1.2.10/topology/pre-process-class.c.orig 2023-09-01 17:36:26.000000000 +0200
456 +++ alsa-utils-1.2.10/topology/pre-process-class.c      2023-09-02 21:39:32.013930162 +0200
457 @@ -127,7 +127,7 @@ snd_config_t *tplg_class_lookup(struct t
458  }
459  
460  /* find the attribute config by name in the class definition */
461 -snd_config_t *tplg_class_find_attribute_by_name(struct tplg_pre_processor *,
462 +snd_config_t *tplg_class_find_attribute_by_name(struct tplg_pre_processor *p_ __attribute__((unused)),
463                                                 snd_config_t *class, const char *name)
464  {
465         snd_config_t *attr = NULL;
466 @@ -152,7 +152,7 @@ snd_config_t *tplg_class_find_attribute_
467  }
468  
469  /* get the name of the attribute that must have a unique value in the object instance */
470 -const char *tplg_class_get_unique_attribute_name(struct tplg_pre_processor *,
471 +const char *tplg_class_get_unique_attribute_name(struct tplg_pre_processor *p_ __attribute__((unused)),
472                                                  snd_config_t *class)
473  {
474         snd_config_t *unique;
475 @@ -177,7 +177,7 @@ const char *tplg_class_get_unique_attrib
476  }
477  
478  /* get attribute type from the definition */
479 -snd_config_type_t tplg_class_get_attribute_type(struct tplg_pre_processor *,
480 +snd_config_type_t tplg_class_get_attribute_type(struct tplg_pre_processor *p_ __attribute__((unused)),
481                                                 snd_config_t *attr)
482  {
483         snd_config_t *type;
484 @@ -208,7 +208,7 @@ snd_config_type_t tplg_class_get_attribu
485  }
486  
487  /* get token_ref for attribute with name attr_name in the class */
488 -const char *tplg_class_get_attribute_token_ref(struct tplg_pre_processor *,
489 +const char *tplg_class_get_attribute_token_ref(struct tplg_pre_processor *p_ __attribute__((unused)),
490                                                snd_config_t *class, const char *attr_name)
491  {
492         snd_config_t *attributes, *attr, *token_ref;
493 @@ -235,7 +235,7 @@ const char *tplg_class_get_attribute_tok
494  }
495  
496  /* convert a valid attribute string value to the corresponding tuple value */
497 -long tplg_class_attribute_valid_tuple_value(struct tplg_pre_processor *,
498 +long tplg_class_attribute_valid_tuple_value(struct tplg_pre_processor *p_ __attribute__((unused)),
499                                             snd_config_t *class, snd_config_t *attr)
500  {
501  
502 --- alsa-utils-1.2.10/topology/pre-process-object.c.orig        2023-09-01 17:36:26.000000000 +0200
503 +++ alsa-utils-1.2.10/topology/pre-process-object.c     2023-09-02 21:41:43.369885213 +0200
504 @@ -31,7 +31,7 @@
505  
506  /* Parse VendorToken object, create the "SectionVendorToken" and save it */
507  int tplg_build_vendor_token_object(struct tplg_pre_processor *tplg_pp,
508 -                                  snd_config_t *obj_cfg, snd_config_t *)
509 +                                  snd_config_t *obj_cfg, snd_config_t *c_ __attribute__((unused)))
510  {
511         snd_config_iterator_t i, next;
512         snd_config_t *vtop, *n, *obj;
513 @@ -196,7 +196,7 @@ int tplg_build_data_object(struct tplg_p
514         return tplg_parent_update(tplg_pp, parent, "data", name);
515  }
516  
517 -static int tplg_create_config_template(struct tplg_pre_processor *,
518 +static int tplg_create_config_template(struct tplg_pre_processor *p_ __attribute__((unused)),
519                                        snd_config_t **template,
520                                        const struct config_template_items *items)
521  {
522 @@ -499,7 +499,7 @@ min_max_check:
523  }
524  
525  /* get object's name attribute value */
526 -const char *tplg_object_get_name(struct tplg_pre_processor *,
527 +const char *tplg_object_get_name(struct tplg_pre_processor *p_ __attribute__((unused)),
528                                  snd_config_t *object)
529  {
530         snd_config_t *cfg;
531 @@ -518,7 +518,7 @@ const char *tplg_object_get_name(struct
532  }
533  
534  /* look up the instance of object in a config */
535 -static snd_config_t *tplg_object_lookup_in_config(struct tplg_pre_processor *,
536 +static snd_config_t *tplg_object_lookup_in_config(struct tplg_pre_processor *p_ __attribute__((unused)),
537                                                   snd_config_t *class, const char *type,
538                                                   const char *class_name, const char *id)
539  {
540 @@ -977,7 +977,7 @@ template:
541  }
542  
543  static int tplg_build_generic_object(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg,
544 -                                    snd_config_t *)
545 +                                    snd_config_t *c_ __attribute__((unused)))
546  {
547         snd_config_t *wtop;
548         const char *name;
549 @@ -1090,7 +1090,7 @@ const struct build_function_map object_b
550          NULL, &pcm_caps_config},
551  };
552  
553 -static const struct build_function_map *tplg_object_get_map(struct tplg_pre_processor *,
554 +static const struct build_function_map *tplg_object_get_map(struct tplg_pre_processor *p_ __attribute__((unused)),
555                                                             snd_config_t *obj)
556  {
557         snd_config_iterator_t first;
558 @@ -1145,7 +1145,7 @@ snd_config_t *tplg_object_get_section(st
559  }
560  
561  /* return 1 if attribute not found in search_config, 0 on success and negative value on error */
562 -static int tplg_object_copy_and_add_param(struct tplg_pre_processor *,
563 +static int tplg_object_copy_and_add_param(struct tplg_pre_processor *p_ __attribute__((unused)),
564                                           snd_config_t *obj,
565                                           snd_config_t *attr_cfg,
566                                           snd_config_t *search_config)
567 @@ -1351,7 +1351,7 @@ static int tplg_object_pre_process_child
568         return 0;
569  }
570  
571 -static int tplg_construct_object_name(struct tplg_pre_processor *, snd_config_t *obj,
572 +static int tplg_construct_object_name(struct tplg_pre_processor *p_ __attribute__((unused)), snd_config_t *obj,
573                                       snd_config_t *class_cfg)
574  {
575         snd_config_iterator_t i, next;
576 @@ -1547,7 +1547,7 @@ static int tplg_object_set_unique_attrib
577   * Helper function to get object instance config which is 2 nodes down from class_type config.
578   * ex: Get the pointer to the config node with ID "0" from the input config Widget.pga.0 {}
579   */
580 -snd_config_t *tplg_object_get_instance_config(struct tplg_pre_processor *,
581 +snd_config_t *tplg_object_get_instance_config(struct tplg_pre_processor *p_ __attribute__((unused)),
582                                         snd_config_t *class_type)
583  {
584         snd_config_iterator_t first;
This page took 0.081484 seconds and 3 git commands to generate.