From c3ebce166611f3e58c4ceb30378c5221f4dd95bd Mon Sep 17 00:00:00 2001 From: Aurora Date: Wed, 9 Mar 2016 15:09:46 +0100 Subject: [PATCH] Crush loader warnings --- loader/source/fatfs/ff.c | 5 +++-- source/fatfs/ff.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/loader/source/fatfs/ff.c b/loader/source/fatfs/ff.c index 41de2fc..396df7c 100644 --- a/loader/source/fatfs/ff.c +++ b/loader/source/fatfs/ff.c @@ -1314,7 +1314,7 @@ int cmp_lfn ( /* 1:Matched, 0:Not matched */ } - +#if _FS_MINIMIZE <= 1 || _USE_LABEL || _FS_RPATH >= 2 static int pick_lfn ( /* 1:Succeeded, 0:Buffer overflow */ WCHAR* lfnbuf, /* Pointer to the Unicode-LFN buffer */ @@ -1345,6 +1345,7 @@ int pick_lfn ( /* 1:Succeeded, 0:Buffer overflow */ return 1; } +#endif #if !_FS_READONLY @@ -1385,7 +1386,7 @@ void fit_lfn ( /*-----------------------------------------------------------------------*/ /* Create numbered name */ /*-----------------------------------------------------------------------*/ -#if _USE_LFN +#if _USE_LFN && !_FS_READONLY static void gen_numname ( BYTE* dst, /* Pointer to the buffer to store numbered SFN */ diff --git a/source/fatfs/ff.c b/source/fatfs/ff.c index 41de2fc..396df7c 100644 --- a/source/fatfs/ff.c +++ b/source/fatfs/ff.c @@ -1314,7 +1314,7 @@ int cmp_lfn ( /* 1:Matched, 0:Not matched */ } - +#if _FS_MINIMIZE <= 1 || _USE_LABEL || _FS_RPATH >= 2 static int pick_lfn ( /* 1:Succeeded, 0:Buffer overflow */ WCHAR* lfnbuf, /* Pointer to the Unicode-LFN buffer */ @@ -1345,6 +1345,7 @@ int pick_lfn ( /* 1:Succeeded, 0:Buffer overflow */ return 1; } +#endif #if !_FS_READONLY @@ -1385,7 +1386,7 @@ void fit_lfn ( /*-----------------------------------------------------------------------*/ /* Create numbered name */ /*-----------------------------------------------------------------------*/ -#if _USE_LFN +#if _USE_LFN && !_FS_READONLY static void gen_numname ( BYTE* dst, /* Pointer to the buffer to store numbered SFN */