Resolved warning: variable declared but never referenced

pull/9187/head
Deepika 2018-12-21 13:31:32 -06:00
parent 7b5fe2d8ba
commit a356db19aa
1 changed files with 5 additions and 4 deletions

View File

@ -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) control_t fslittle_fopen_test_07(const size_t call_count)
{ {
FILE *f = NULL; FILE *f = NULL;
int ret = -1;
int errno_val = 0; int errno_val = 0;
const char *filename = sd_badfile_path; const char *filename = sd_badfile_path;
@ -1016,7 +1015,7 @@ control_t fslittle_fopen_test_11(const size_t call_count)
return CaseNext; return CaseNext;
} }
#if ! defined(__ARMCC_VERSION) && defined(__GNUC__)
/* file data for test_12 */ /* file data for test_12 */
static fslittle_kv_data_t fslittle_fopen_test_12_kv_data[] = { static fslittle_kv_data_t fslittle_fopen_test_12_kv_data[] = {
{ "/sd/test_12/subdir/testfil1.txt", "testfil1.txt"}, { "/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"}, { "/sd/test_12/testfil5.txt", "testfil5.txt"},
{ NULL, NULL}, { NULL, NULL},
}; };
#endif
/** @brief test for operation of readdir(). /** @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) 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 buf[FSLITTLE_FOPEN_TEST_WORK_BUF_SIZE_1];
char *pos = NULL; char *pos = NULL;
int32_t count = 0; 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__); FSLITTLE_FENTRYLOG("%s:entered\n", __func__);
(void) call_count; (void) call_count;
#if ! defined(__ARMCC_VERSION) && defined(__GNUC__)
/* start from a known state i.e. directory to be created in not present */ /* start from a known state i.e. directory to be created in not present */
while (node->filename != NULL) { while (node->filename != NULL) {
fslittle_filepath_remove_all((char *) node->filename); fslittle_filepath_remove_all((char *) node->filename);
@ -1156,6 +1155,7 @@ control_t fslittle_fopen_test_13(const size_t call_count)
return CaseNext; return CaseNext;
} }
#if ! defined(__ARMCC_VERSION) && defined(__GNUC__)
/* file data for test_14 */ /* file data for test_14 */
static fslittle_kv_data_t fslittle_fopen_test_14_kv_data[] = { 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, /* 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"}, { "/sd/test_14/testfile.txt", "testdata"},
{ NULL, NULL}, { NULL, NULL},
}; };
#endif
/** @brief test for operation of stat() /** @brief test for operation of stat()
* *