Silenced two compiler warnings

This commit is contained in:
Thomas Schmitt 2006-08-20 18:21:29 +00:00
parent 392d94209d
commit 831c487911
1 changed files with 16 additions and 2 deletions

View File

@ -83,6 +83,13 @@ int burn_write_flush(struct burn_write_opts *o)
return 1; return 1;
} }
/* ts A60819:
This is unused since about Feb 2006, icculus.org/burn CVS.
The compiler complains. We shall please our compiler.
*/
#ifdef Libburn_write_with_function_print_cuE
static void print_cue(struct cue_sheet *sheet) static void print_cue(struct cue_sheet *sheet)
{ {
int i; int i;
@ -100,6 +107,9 @@ static void print_cue(struct cue_sheet *sheet)
} }
} }
#endif /* Libburn_write_with_print_cuE */
static void add_cue(struct cue_sheet *sheet, unsigned char ctladr, static void add_cue(struct cue_sheet *sheet, unsigned char ctladr,
unsigned char tno, unsigned char indx, unsigned char tno, unsigned char indx,
unsigned char form, unsigned char scms, int lba) unsigned char form, unsigned char scms, int lba)
@ -181,8 +191,12 @@ struct cue_sheet *burn_create_toc_entries(struct burn_write_opts *o,
add_cue(sheet, ctladr | 1, i + 1, 0, form, 0, runtime); add_cue(sheet, ctladr | 1, i + 1, 0, form, 0, runtime);
runtime += 150; runtime += 150;
/* XXX fix pregap interval 1 for data tracks */ /* XXX fix pregap interval 1 for data tracks */
// if (!(form & BURN_AUDIO)) /* ts A60813 silence righteous compiler warning about C++ style comments
// tar[i]->pregap1 = 1; This is possibly not a comment but rather a trace of Derek Foreman
experiments. Thus not to be beautified - but to be preserved rectified.
/ / if (!(form & BURN_AUDIO))
/ / tar[i]->pregap1 = 1;
*/
tar[i]->pregap2 = 1; tar[i]->pregap2 = 1;
} }
/* XXX HERE IS WHERE WE DO INDICES IN THE CUE SHEET */ /* XXX HERE IS WHERE WE DO INDICES IN THE CUE SHEET */