From: batt Date: Thu, 8 Jul 2010 16:32:34 +0000 (+0000) Subject: Silence warning during night test. X-Git-Tag: 2.6.0~302 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=dbc93a323bf913a9f5422b93ac59b828819a97db;p=bertos.git Silence warning during night test. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4014 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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.