Fix elif with no expression.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 30 Mar 2010 08:32:44 +0000 (08:32 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 30 Mar 2010 08:32:44 +0000 (08:32 +0000)
An elif condition without expression may trigger the following build
error with recent toolchains.

 In file included from ./bertos/drv/flash25.c:53:
 bertos/drv/flash25.h:103: error: #elif with no expression
 make: *** [obj/armtest/./bertos/drv/flash25.o] Error 1

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3319 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/flash25.h

index 53ca9197ef63d45ef3a285874a33f8412689efd6..5c31ba6e0e820bdbf3c87323da57ac0fc47f10b9 100644 (file)
@@ -100,7 +100,7 @@ INLINE Flash25 * FLASH25_CAST(KFile *fd)
        #define FLASH25_SECTOR_SIZE        65536UL // Section size in byte
        #define FLASH25_MEM_SIZE           FLASH25_NUM_SECTOR * FLASH25_SECTOR_SIZE
        #define FLASH25_NUM_PAGE           FLASH25_MEM_SIZE / FLASH25_PAGE_SIZE
-#elif
+#else
        #error Nothing memory defined in CONFIG_FLASH25 are support.
 #endif