From 5fa2ea6c585f617a5ccb674ddda290fd890a1967 Mon Sep 17 00:00:00 2001 From: arighi Date: Tue, 30 Mar 2010 08:32:44 +0000 Subject: [PATCH] Fix elif with no expression. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/drv/flash25.h b/bertos/drv/flash25.h index 53ca9197..5c31ba6e 100644 --- a/bertos/drv/flash25.h +++ b/bertos/drv/flash25.h @@ -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 -- 2.25.1