From cf8a7bebf643fdab32290f829218cfaeaf8bbb4a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 17 Dec 2017 16:47:49 -0600 Subject: [PATCH] Eliminate another warning. --- fs/fat/fs_fat32.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fs/fat/fs_fat32.h b/fs/fat/fs_fat32.h index 0482194b7e0..e49b7ff5d64 100644 --- a/fs/fat/fs_fat32.h +++ b/fs/fat/fs_fat32.h @@ -237,6 +237,11 @@ # define CONFIG_FAT_MAXFNAME CONFIG_NAME_MAX # endif +# if CONFIG_FAT_MAXFNAME < 12 +# undef CONFIG_FAT_MAXFNAME +# define CONFIG_FAT_MAXFNAME 12 +# endif + # ifndef CONFIG_FAT_MAXFNAME /* The maximum support filename can be limited */ # define LDIR_MAXFNAME 255 /* Max unicode characters in file name */ # elif CONFIG_FAT_MAXFNAME <= 255