From 95d43532d34b081f5eedd86973f82de250775ca3 Mon Sep 17 00:00:00 2001 From: Deepika Date: Fri, 21 Dec 2018 13:31:32 -0600 Subject: [PATCH] Resolved warning: variable declared but never referenced --- .../COMPONENT_FLASHIAP/TESTS/filesystem/fopen/fopen.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/components/storage/blockdevice/COMPONENT_FLASHIAP/TESTS/filesystem/fopen/fopen.cpp b/components/storage/blockdevice/COMPONENT_FLASHIAP/TESTS/filesystem/fopen/fopen.cpp index bd3d72455f..354d74fa14 100644 --- a/components/storage/blockdevice/COMPONENT_FLASHIAP/TESTS/filesystem/fopen/fopen.cpp +++ b/components/storage/blockdevice/COMPONENT_FLASHIAP/TESTS/filesystem/fopen/fopen.cpp @@ -734,7 +734,6 @@ control_t fslittle_fopen_test_06(const size_t call_count) control_t fslittle_fopen_test_07(const size_t call_count) { FILE *f = NULL; - int ret = -1; int errno_val = 0; const char *filename = sd_badfile_path; @@ -1016,7 +1015,7 @@ control_t fslittle_fopen_test_11(const size_t call_count) return CaseNext; } - +#if ! defined(__ARMCC_VERSION) && defined(__GNUC__) /* file data for test_12 */ static fslittle_kv_data_t fslittle_fopen_test_12_kv_data[] = { { "/sd/test_12/subdir/testfil1.txt", "testfil1.txt"}, @@ -1026,6 +1025,7 @@ static fslittle_kv_data_t fslittle_fopen_test_12_kv_data[] = { { "/sd/test_12/testfil5.txt", "testfil5.txt"}, { NULL, NULL}, }; +#endif /** @brief test for operation of readdir(). * @@ -1036,6 +1036,7 @@ static fslittle_kv_data_t fslittle_fopen_test_12_kv_data[] = { */ control_t fslittle_fopen_test_12(const size_t call_count) { +#if ! defined(__ARMCC_VERSION) && defined(__GNUC__) char buf[FSLITTLE_FOPEN_TEST_WORK_BUF_SIZE_1]; char *pos = NULL; int32_t count = 0; @@ -1048,8 +1049,6 @@ control_t fslittle_fopen_test_12(const size_t call_count) FSLITTLE_FENTRYLOG("%s:entered\n", __func__); (void) call_count; -#if ! defined(__ARMCC_VERSION) && defined(__GNUC__) - /* start from a known state i.e. directory to be created in not present */ while (node->filename != NULL) { fslittle_filepath_remove_all((char *) node->filename); @@ -1156,6 +1155,7 @@ control_t fslittle_fopen_test_13(const size_t call_count) return CaseNext; } +#if ! defined(__ARMCC_VERSION) && defined(__GNUC__) /* file data for test_14 */ static fslittle_kv_data_t fslittle_fopen_test_14_kv_data[] = { /* a file is included in the filepath even though its not created by the test, @@ -1163,6 +1163,7 @@ static fslittle_kv_data_t fslittle_fopen_test_14_kv_data[] = { { "/sd/test_14/testfile.txt", "testdata"}, { NULL, NULL}, }; +#endif /** @brief test for operation of stat() *