From 93cff94e7ff288092d3684f08ed1f743a4d07098 Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Sun, 20 Aug 2017 17:25:58 +0200 Subject: [PATCH] Fixed some compilation warnings --- src/obidms.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/obidms.c b/src/obidms.c index 6304f49..8db9592 100644 --- a/src/obidms.c +++ b/src/obidms.c @@ -240,7 +240,6 @@ OBIDMS_p obi_create_dms(const char* dms_path) char* directory_name; DIR* dms_dir; int dms_file_descriptor; - size_t i, j; // Build and check the directory name directory_name = build_directory_name(dms_path); @@ -318,7 +317,7 @@ OBIDMS_p obi_create_dms(const char* dms_path) */ // Create the informations file - if (create_dms_infos_file(dms_file_descriptor, basename(dms_path)) < 0) + if (create_dms_infos_file(dms_file_descriptor, basename((char*)dms_path)) < 0) return NULL; return obi_open_dms(dms_path); @@ -333,7 +332,6 @@ OBIDMS_p obi_open_dms(const char* dms_path) int infos_file_descriptor; bool little_endian_dms; bool little_endian_platform; - size_t i, j; dms = NULL; @@ -356,7 +354,7 @@ OBIDMS_p obi_open_dms(const char* dms_path) i++; } */ - strcpy(dms->dms_name, basename(dms_path)); + strcpy(dms->dms_name, basename((char*)dms_path)); // Build and check the directory name including the relative path complete_dms_path = build_directory_name(dms_path);