fix compilation issues on older gcc5
This commit is contained in:
parent
859341273e
commit
c217d7d759
8
main.cc
8
main.cc
|
|
@ -598,7 +598,7 @@ bool had_timescale = false;
|
||||||
static void read_iconfig_file(const char*ipath)
|
static void read_iconfig_file(const char*ipath)
|
||||||
{
|
{
|
||||||
char buf[8*1024];
|
char buf[8*1024];
|
||||||
vector<pair<char*,bool>> to_build_library_index;
|
vector<pair<char*,bool> > to_build_library_index;
|
||||||
|
|
||||||
FILE*ifile = fopen(ipath, "r");
|
FILE*ifile = fopen(ipath, "r");
|
||||||
if (ifile == 0) {
|
if (ifile == 0) {
|
||||||
|
|
@ -799,10 +799,10 @@ static void read_iconfig_file(const char*ipath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fclose(ifile);
|
fclose(ifile);
|
||||||
for (vector<pair<char *, bool>>::iterator it = to_build_library_index.begin() ;
|
for (vector<pair<char *, bool> >::iterator it = to_build_library_index.begin() ;
|
||||||
it != to_build_library_index.end() ; ++ it ) {
|
it != to_build_library_index.end() ; ++ it ) {
|
||||||
build_library_index(get<0>(*it), get<1>(*it));
|
build_library_index(it->first, it->second);
|
||||||
free(get<0>(*it));
|
free(it->first);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue