From dbc93a323bf913a9f5422b93ac59b828819a97db Mon Sep 17 00:00:00 2001 From: batt Date: Thu, 8 Jul 2010 16:32:34 +0000 Subject: [PATCH] Silence warning during night test. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4014 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/sd.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bertos/drv/sd.h b/bertos/drv/sd.h index a0ca1d42..368e0d4f 100644 --- a/bertos/drv/sd.h +++ b/bertos/drv/sd.h @@ -65,8 +65,10 @@ bool sd_initUnbuf(Sd *sd, KFile *ch); bool sd_initBuf(Sd *sd, KFile *ch); #if CONFIG_SD_OLD_INIT - #warning "Deprecated: this API will be removed in the next major release," - #warning "please disable CONFIG_SD_OLD_INIT and pass explicitly the SD context to sd_init()." + #if !(ARCH & ARCH_NIGHTTEST) + #warning "Deprecated: this API will be removed in the next major release," + #warning "please disable CONFIG_SD_OLD_INIT and pass explicitly the SD context to sd_init()." + #endif /** * Initializes the SD driver. -- 2.25.1