Here are some possible patches to fix this bug. remove-libscg-warning works to completely remove the message from the code, and disable-libscg-warning is just a technical hack around the ominous copyright warning message in the comment (and note that the warning doesn't say anything about the warning message actually getting printed). Use remove-libscg-warning unless there are legal problems with doing so.
--Ken -- Ken Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/ I've added a signing subkey to my GPG key. Please update your keyring.
Index: cdrkit-1.0~pre4/libscg/scsitransp.c =================================================================== --- cdrkit-1.0~pre4.orig/libscg/scsitransp.c 2006-10-09 11:54:02.000000000 -0500 +++ cdrkit-1.0~pre4/libscg/scsitransp.c 2006-10-09 11:55:02.000000000 -0500 @@ -171,24 +171,6 @@ scg_ops_t *ops; extern scg_ops_t scg_std_ops; +/* this preprocessor directive technically avoids the restriction below */ +#if 0 /* * Begin restricted code for quality assurance. * * Warning: you are not allowed to modify the quality ensurance code below. * * This restiction is introduced because this way, I hope that people * contribute to the project instead of creating branches. */ #if !defined(IS_SCHILY_XCONFIG) printf("\nWarning: This version of libscg has not been configured via the standard\n"); printf("autoconfiguration method of the Schily makefile system. There is a high risk\n"); printf("that the code is not configured correctly and for this reason will not behave\n"); printf("as expected.\n"); #endif /* * End restricted code for quality assurance. */ +#endif scgp->ops = &scg_std_ops; if (device && strncmp(device, "REMOTE", 6) == 0) {
Index: cdrkit-1.0~pre4/libscg/scsitransp.c =================================================================== --- cdrkit-1.0~pre4.orig/libscg/scsitransp.c 2006-10-09 11:54:02.000000000 -0500 +++ cdrkit-1.0~pre4/libscg/scsitransp.c 2006-10-09 11:55:02.000000000 -0500 @@ -171,24 +171,6 @@ scg_ops_t *ops; extern scg_ops_t scg_std_ops; - /* - * Begin restricted code for quality assurance. - * - * Warning: you are not allowed to modify the quality ensurance code below. - * - * This restiction is introduced because this way, I hope that people - * contribute to the project instead of creating branches. - */ -#if !defined(IS_SCHILY_XCONFIG) - printf("\nWarning: This version of libscg has not been configured via the standard\n"); - printf("autoconfiguration method of the Schily makefile system. There is a high risk\n"); - printf("that the code is not configured correctly and for this reason will not behave\n"); - printf("as expected.\n"); -#endif - /* - * End restricted code for quality assurance. - */ - scgp->ops = &scg_std_ops; if (device && strncmp(device, "REMOTE", 6) == 0) {
signature.asc
Description: Digital signature