Silence warning during night test.
[bertos.git] / bertos / drv / sd.h
index a0ca1d42dfd8a79493879d605a7a6409bd0e771c..368e0d4fff975d6d375257004ed01c1f2f3e4fca 100644 (file)
@@ -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.