Skip to content
Snippets Groups Projects
Commit e0eaba8a authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

WRG: incorrect format specifier -Wformat

parent 1a4a8ebb
No related branches found
No related tags found
No related merge requests found
...@@ -1092,7 +1092,7 @@ int TestHelper::RegressionTestOgrFile(const char *testOgrFilename, const char *b ...@@ -1092,7 +1092,7 @@ int TestHelper::RegressionTestOgrFile(const char *testOgrFilename, const char *b
test_poDS = otb::ogr::version_proxy::Open(ref_pszDataSource, bReadOnly); test_poDS = otb::ogr::version_proxy::Open(ref_pszDataSource, bReadOnly);
bReadOnly = TRUE; bReadOnly = TRUE;
if (test_poDS != NULL && m_ReportErrors) if (test_poDS != NULL && m_ReportErrors)
{ {
std::cout << "Had to open TEST data source read-only."<<std::endl; std::cout << "Had to open TEST data source read-only."<<std::endl;
...@@ -1103,13 +1103,13 @@ int TestHelper::RegressionTestOgrFile(const char *testOgrFilename, const char *b ...@@ -1103,13 +1103,13 @@ int TestHelper::RegressionTestOgrFile(const char *testOgrFilename, const char *b
/* -------------------------------------------------------------------- */ /* -------------------------------------------------------------------- */
if (ref_poDS == NULL) if (ref_poDS == NULL)
{ {
if (m_ReportErrors) if (m_ReportErrors)
{ {
std::cout << "FAILURE:\n" "Unable to open REF datasource `" << ref_pszDataSource << "' with the following drivers." << std::endl; std::cout << "FAILURE:\n" "Unable to open REF datasource `" << ref_pszDataSource << "' with the following drivers." << std::endl;
std::vector<std::string> drivers = ogr::version_proxy::GetAvailableDriversAsStringVector(); std::vector<std::string> drivers = ogr::version_proxy::GetAvailableDriversAsStringVector();
for (std::vector<std::string>::const_iterator it = drivers.begin();it!=drivers.end();++it) for (std::vector<std::string>::const_iterator it = drivers.begin();it!=drivers.end();++it)
{ {
std::cout << " -> " << *it << std::endl; std::cout << " -> " << *it << std::endl;
...@@ -1127,7 +1127,7 @@ int TestHelper::RegressionTestOgrFile(const char *testOgrFilename, const char *b ...@@ -1127,7 +1127,7 @@ int TestHelper::RegressionTestOgrFile(const char *testOgrFilename, const char *b
std::cout << "FAILURE:\n""Unable to open TEST datasource `" << test_pszDataSource << "' with the following drivers." << std::endl; std::cout << "FAILURE:\n""Unable to open TEST datasource `" << test_pszDataSource << "' with the following drivers." << std::endl;
std::vector<std::string> drivers = ogr::version_proxy::GetAvailableDriversAsStringVector(); std::vector<std::string> drivers = ogr::version_proxy::GetAvailableDriversAsStringVector();
for (std::vector<std::string>::const_iterator it = drivers.begin();it!=drivers.end();++it) for (std::vector<std::string>::const_iterator it = drivers.begin();it!=drivers.end();++it)
{ {
std::cout << " -> " << *it << std::endl; std::cout << " -> " << *it << std::endl;
...@@ -1165,7 +1165,7 @@ int TestHelper::RegressionTestOgrFile(const char *testOgrFilename, const char *b ...@@ -1165,7 +1165,7 @@ int TestHelper::RegressionTestOgrFile(const char *testOgrFilename, const char *b
} }
++fileId; ++fileId;
} }
/* -------------------------------------------------------------------- */ /* -------------------------------------------------------------------- */
/* Process each data source layer. */ /* Process each data source layer. */
/* -------------------------------------------------------------------- */ /* -------------------------------------------------------------------- */
...@@ -1269,7 +1269,7 @@ void TestHelper::DumpOGRFeature(FILE* fpOut, OGRFeature* feature, char** papszOp ...@@ -1269,7 +1269,7 @@ void TestHelper::DumpOGRFeature(FILE* fpOut, OGRFeature* feature, char** papszOp
return; return;
} }
fprintf(fpOut, "OGRFeature:%lld\n", feature->GetFID()); fprintf(fpOut, "OGRFeature:%ld\n", feature->GetFID());
const char* pszDisplayFields = const char* pszDisplayFields =
CSLFetchNameValue(papszOptions, "DISPLAY_FIELDS"); CSLFetchNameValue(papszOptions, "DISPLAY_FIELDS");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment