From b07c83ed860aaede51b1dce9d329ba949e2d5f12 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 2 Mar 2009 20:01:37 +0000 Subject: [PATCH] Added a dummy function with loud compiler warning to sg.c dummy case --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/sg.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index aefec21..03e0334 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2009.03.02.193353" +#define Cdrskin_timestamP "2009.03.02.200132" diff --git a/libburn/sg.c b/libburn/sg.c index 967cdb2..d527643 100644 --- a/libburn/sg.c +++ b/libburn/sg.c @@ -16,6 +16,24 @@ #else +/* The dummy adapter formally fulfills the expectations of libburn towards + its SCSI command transport. It will show no drives and perform no SCSI + commands. + libburn will then be restricted to using its stdio pseudo drives. +*/ +static int intentional_compiler_warning(void) +{ + int INTENTIONAL_COMPILER_WARNING_; + int Cannot_recognize_Linux_nor_FreeBSD_; + int Have_to_use_dummy_MMC_transport_adapter_; + int This_libburn_will_not_be_able_to_operate_on_real_CD_drives; + int Have_to_use_dummy_MMC_transport_adapter; + int Cannot_recognize_Linux_nor_FreeBSD; + int INTENTIONAL_COMPILER_WARNING; + + return(0); +} + #include "sg-dummy.c" #endif /* ! __linux */