Private
Public Access
2
0

mraa: Fix compiler warnings unused vars and useless statements

Should have 0 functionality effect, just cleans up a few things. Fixes #577

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-09-13 11:20:40 +01:00
parent 139d42d084
commit 6c85b61daa
11 changed files with 15 additions and 19 deletions

View File

@@ -80,7 +80,6 @@ mraa_init_json_platform_platform(json_object* jobj_platform, mraa_board_t* board
{
json_object* jobj_temp = NULL;
const char* temp_string = NULL;
int temp_count = 0;
int length = 0;
mraa_result_t ret = MRAA_SUCCESS;
@@ -600,8 +599,8 @@ mraa_init_json_platform(const char* platform_json)
mraa_result_t ret = MRAA_SUCCESS;
char* buffer = NULL;
struct stat st;
int file_lock = 0, array_length = 0, i = 0;
json_object *jobj_platform = NULL, *jobj_temp = NULL;
int file_lock = 0, i = 0;
json_object *jobj_platform = NULL;
mraa_board_t* board = NULL;
// Try to lock the file for use